mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-08 01:45:28 +00:00
fix: Add ability to leave server through server info screen
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user