Fix pins not refreshing after being loaded
This commit is contained in:
parent
bcc6c518be
commit
3eafd4396e
4 changed files with 15 additions and 4 deletions
|
|
@ -48,9 +48,13 @@ EventStore::EventStore(std::string room_id, QObject *)
|
|||
cache::client()->storeEvent(room_id_, id, {timeline});
|
||||
|
||||
if (!relatedTo.empty()) {
|
||||
auto idx = idToIndex(relatedTo);
|
||||
if (idx)
|
||||
emit dataChanged(*idx, *idx);
|
||||
if (relatedTo == "pins") {
|
||||
emit pinsChanged();
|
||||
} else {
|
||||
auto idx = idToIndex(relatedTo);
|
||||
if (idx)
|
||||
emit dataChanged(*idx, *idx);
|
||||
}
|
||||
}
|
||||
},
|
||||
Qt::QueuedConnection);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue