mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
parent
2df4c532ed
commit
b60d6f4d58
1 changed files with 4 additions and 2 deletions
|
@ -566,8 +566,10 @@ TimelineModel::data(const mtx::events::collections::TimelineEvents &event, int r
|
||||||
case IsEdited:
|
case IsEdited:
|
||||||
return QVariant(relations(event).replaces().has_value());
|
return QVariant(relations(event).replaces().has_value());
|
||||||
case IsEditable:
|
case IsEditable:
|
||||||
return QVariant(!is_state_event(event) && mtx::accessors::sender(event) ==
|
return QVariant(!is_state_event(event) &&
|
||||||
http::client()->user_id().to_string());
|
mtx::accessors::sender(event) ==
|
||||||
|
http::client()->user_id().to_string() &&
|
||||||
|
!event_id(event).empty() && event_id(event).front() == '$');
|
||||||
case IsEncrypted: {
|
case IsEncrypted: {
|
||||||
auto id = event_id(event);
|
auto id = event_id(event);
|
||||||
auto encrypted_event = events.get(id, id, false);
|
auto encrypted_event = events.get(id, id, false);
|
||||||
|
|
Loading…
Reference in a new issue