Skip to content

Commit

Permalink
Cache bridge names along with user names
Browse files Browse the repository at this point in the history
Otherwise the bridge is forgotten after restart. This bumps the cache
version.
  • Loading branch information
KitsuneRal committed Apr 27, 2018
1 parent 3a763fd commit f95a915
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ void Connection::setHomeserver(const QUrl& url)
emit homeserverChanged(homeserver());
}

static constexpr int CACHE_VERSION_MAJOR = 7;
static constexpr int CACHE_VERSION_MAJOR = 8;
static constexpr int CACHE_VERSION_MINOR = 0;

void Connection::saveState(const QUrl &toFile) const
Expand Down
2 changes: 1 addition & 1 deletion lib/room.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1796,7 +1796,7 @@ QJsonObject Room::Private::toJson() const
for (const auto *m : membersMap)
appendStateEvent(stateEvents, QStringLiteral("m.room.member"),
{ { QStringLiteral("membership"), QStringLiteral("join") }
, { QStringLiteral("displayname"), m->name(q) }
, { QStringLiteral("displayname"), m->rawName(q) }
, { QStringLiteral("avatar_url"), m->avatarUrl(q).toString() }
}, m->id());

Expand Down

0 comments on commit f95a915

Please sign in to comment.