Skip to content

Commit

Permalink
fix: Add ability to leave server through server info screen
Browse files Browse the repository at this point in the history
  • Loading branch information
DeclanChidlow committed Oct 15, 2024
1 parent 00e6ead commit 5e66bc8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/controllers/modals/components/ServerInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 5e66bc8

Please sign in to comment.