Update react-overlapping-panels.

Fix: bottom navigation appearing in wrong place.
Fix: Redirect to server from invite if already joined.
Fix: Use monoscape font for code textareas.
This commit is contained in:
Paul
2021-07-07 13:08:39 +01:00
parent f9b5d768d3
commit 2c4a74bdde
4 changed files with 18 additions and 14 deletions

View File

@@ -105,11 +105,15 @@ export default function Invite() {
try {
setProcessing(true);
if (invite.type === "Server") {
if (client.servers.get(invite.server_id)) {
history.push(`/server/${invite.server_id}/channel/${invite.channel_id}`);
}
}
let result = await client.joinInvite(code);
if (result.type === "Server") {
history.push(
`/server/${result.server._id}/channel/${result.channel._id}`,
);
history.push(`/server/${result.server._id}/channel/${result.channel._id}`);
}
} catch (err) {
setError(takeError(err));