Fix failed send indicator not updating automatically

This commit is contained in:
Nicolas Werner 2026-02-20 17:45:00 +01:00
parent f91427e653
commit 014d70fd64
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -166,6 +166,11 @@ EventStore::EventStore(std::string room_id, QObject *)
nhlog::ui()->debug("failing txn id '{}'", txn_id);
cache::client()->removePendingStatus(room_id_, txn_id);
current_txn_error_count = 0;
auto idx = idToIndex(txn_id);
if (idx)
emit dataChanged(*idx, *idx);
}
}
QTimer::singleShot(1000, this, [this]() {