From c28ce8e675fb90f9d982b3601e27506332816ee7 Mon Sep 17 00:00:00 2001 From: lizzie Date: Sat, 1 Aug 2026 09:46:26 +0000 Subject: [PATCH] feat: make 'Mark as read' topmost option for guilds Signed-off-by: lizzie --- src/webpage/guild.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/webpage/guild.ts b/src/webpage/guild.ts index 962b479..79045c7 100644 --- a/src/webpage/guild.ts +++ b/src/webpage/guild.ts @@ -197,6 +197,14 @@ class Guild extends SnowFlake { welcomeScreen?: welcomeScreen; static readonly contextmenu = new Contextmenu("guild menu"); static setupcontextmenu() { + Guild.contextmenu.addButton( + () => I18n.guild.markRead(), + function (this: Guild) { + this.markAsRead(); + }, + ); + Guild.contextmenu.addSeperator(); + Guild.contextmenu.addButton( () => I18n.guild.makeInvite(), function (this: Guild) { @@ -211,14 +219,6 @@ class Guild extends SnowFlake { color: "blue", }, ); - Guild.contextmenu.addSeperator(); - - Guild.contextmenu.addButton( - () => I18n.guild.markRead(), - function (this: Guild) { - this.markAsRead(); - }, - ); Guild.contextmenu.addButton( () => I18n.guild.notifications(),