allow hiding client stickies

Fixes #105
This commit is contained in:
Henry Hiles 2026-10-02 17:01:25 -04:00
commit 8da46dffe4
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
5 changed files with 75 additions and 16 deletions

View file

@ -225,10 +225,11 @@ extension BuildEventOptions on Event {
),
if (ref.watch(
PowerLevelController.provider(
.redaction(targetUser: sender, roomId: roomId),
),
))
PowerLevelController.provider(
.redaction(targetUser: sender, roomId: roomId),
),
) &&
!eventId.startsWith("~"))
PopupMenuItem(
onTap: () => showReasonDialog(
title: "Delete Message",
@ -245,6 +246,15 @@ extension BuildEventOptions on Event {
),
),
if (eventId.startsWith("~"))
PopupMenuItem(
onTap: () => ref.watch(notifier).hideClientSticky(rowId),
child: ListTile(
leading: Icon(Icons.delete, color: danger),
title: Text("Hide", style: .new(color: danger)),
),
),
PopupMenuItem(
onTap: () => showReasonDialog(
title: "Report",