edit messages

This commit is contained in:
nnduc
2026-10-24 18:04:12 +07:00
parent a3cf10cb0a
commit 6946109ae2
6 changed files with 210 additions and 41 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ async fn show_message_dialog(ctx: &Ctx, mid: i64) {
let mine = if m.is_muc() { rooms::my_nick(ctx, &m.jidfrom) == m.resource && m.resource.is_some() } else { m.jidfrom == me };
let has_file = db::message_file(ctx.db(), mid).await.ok().flatten().is_some();
let editable = mine && !m.encrypted && !has_file;
let editable = mine && !has_file && !m.retracted;
let moderator = m.is_muc()
&& m.stanzaid.is_some()
&& ctx