Cache last event

Cache the last room event so that the room list can be sorted on startup

Fixes network/neochat#88 \
BUG: 455042
This commit is contained in:
James Graham
2023-05-15 19:11:44 +00:00
parent e0df447998
commit c63f1f0452
2 changed files with 48 additions and 0 deletions

View File

@@ -774,6 +774,8 @@ private:
QCoro::Task<void> doDeleteMessagesByUser(const QString &user, QString reason);
QCoro::Task<void> doUploadFile(QUrl url, QString body = QString());
std::unique_ptr<Quotient::RoomEvent> m_cachedEvent;
QString m_chatBoxText;
QString m_editText;
QString m_chatBoxReplyId;
@@ -790,6 +792,8 @@ private Q_SLOTS:
void countChanged();
void updatePushNotificationState(QString type);
void cacheLastEvent();
Q_SIGNALS:
void cachedInputChanged();
void busyChanged();