room-history: disable context menu for redacted messages
This commit is contained in:
parent
43363669c8
commit
a640e6dcc8
1 changed files with 5 additions and 1 deletions
|
@ -119,7 +119,11 @@ mod imp {
|
||||||
fn menu_opened(&self) {
|
fn menu_opened(&self) {
|
||||||
let obj = self.obj();
|
let obj = self.obj();
|
||||||
|
|
||||||
let Some(event) = obj.item().and_downcast::<Event>() else {
|
let Some(event) = obj
|
||||||
|
.item()
|
||||||
|
.and_downcast::<Event>()
|
||||||
|
.filter(|e| !e.is_redacted())
|
||||||
|
else {
|
||||||
obj.set_popover(None);
|
obj.set_popover(None);
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue