diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-09-20 20:48:40 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-09-20 20:48:40 +0900 |
commit | f936182135d166e5dea734775e24cabd4b763c64 (patch) | |
tree | caf4531d0fc37ddbc25db76e979be43431f01378 | |
parent | 81c04033fa32ed0fa45c44db22ce11ff0636669b (diff) | |
download | libquotient-f936182135d166e5dea734775e24cabd4b763c64.tar.gz libquotient-f936182135d166e5dea734775e24cabd4b763c64.zip |
Room::Private::toJson(): save user avatar URLs as well
Otherwise, users are doomed to stay avatarless upon restoration, until they update avatars again.
-rw-r--r-- | room.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -944,7 +944,7 @@ QJsonObject Room::Private::toJson() const QJsonObject content; content.insert("membership", QStringLiteral("join")); content.insert("displayname", i->displayname()); - // avatar URL is not available + content.insert("avatar_url", i->avatarUrl().toString()); QJsonObject memberEvent; memberEvent.insert("type", QStringLiteral("m.room.member")); |