From 5e66bc8dc478c4a17566e85545add5a048a3b45b Mon Sep 17 00:00:00 2001 From: Declan Chidlow Date: Tue, 15 Oct 2024 20:23:36 +0800 Subject: [PATCH] fix: Add ability to leave server through server info screen --- src/controllers/modals/components/ServerInfo.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/controllers/modals/components/ServerInfo.tsx b/src/controllers/modals/components/ServerInfo.tsx index ea15df7c..23598af0 100644 --- a/src/controllers/modals/components/ServerInfo.tsx +++ b/src/controllers/modals/components/ServerInfo.tsx @@ -38,6 +38,17 @@ export default function ServerInfo({ children: "Edit Identity", palette: "primary", }, + { + onClick: () => { + modalController.push({ + type: "leave_server", + target: server, + }); + return true; + }, + children: "Leave Server", + palette: "error", + }, { onClick: () => { modalController.push({