1
0
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:
Puyodead1 2023-12-18 11:59:31 -05:00
parent 85ee16e7b9
commit af454cfdf6
No known key found for this signature in database
GPG Key ID: BA5F91AAEF68E5CE

View File

@ -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) {