mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-26 04:02:46 +01:00
close all modals on guild join
This commit is contained in:
parent
85ee16e7b9
commit
af454cfdf6
@ -39,8 +39,7 @@ export function JoinServerModal({ ...props }: ModalProps<"join_server">) {
|
|||||||
.post<never, { guild_id: string; channel_id: string }>(Routes.invite(code))
|
.post<never, { guild_id: string; channel_id: string }>(Routes.invite(code))
|
||||||
.then((r) => {
|
.then((r) => {
|
||||||
navigate(`/channels/${r.guild_id}/${r.channel_id}`);
|
navigate(`/channels/${r.guild_id}/${r.channel_id}`);
|
||||||
// modalController.closeAll();
|
modalController.closeAll();
|
||||||
// TODO:
|
|
||||||
})
|
})
|
||||||
.catch((r) => {
|
.catch((r) => {
|
||||||
if ("message" in r) {
|
if ("message" in r) {
|
||||||
|
Loading…
Reference in New Issue
Block a user