mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user