Fix stuck unread messages by storing state events in the db
This may increase the db size by a factor of 1000 in the worst case and it will need some fixes, when we decide to not show some events in the timeline, but it should work for now.
This commit is contained in:
parent
62b962cb44
commit
1eb2869fa8
3 changed files with 40 additions and 14 deletions
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
#include "Cache.h"
|
||||
#include "Config.h"
|
||||
#include "MatrixClient.h"
|
||||
|
||||
using TimelineEvent = mtx::events::collections::TimelineEvents;
|
||||
|
||||
|
|
@ -44,8 +45,7 @@ createDescriptionInfo(const Event &event, const QString &localUser, const QStrin
|
|||
QString
|
||||
utils::localUser()
|
||||
{
|
||||
QSettings settings;
|
||||
return settings.value("auth/user_id").toString();
|
||||
return QString::fromStdString(http::client()->user_id().to_string());
|
||||
}
|
||||
|
||||
QString
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue