aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-09-20 20:48:40 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-09-20 20:48:40 +0900
commitf936182135d166e5dea734775e24cabd4b763c64 (patch)
treecaf4531d0fc37ddbc25db76e979be43431f01378
parent81c04033fa32ed0fa45c44db22ce11ff0636669b (diff)
downloadlibquotient-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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/room.cpp b/room.cpp
index 94b5cd29..332d6fa7 100644
--- a/room.cpp
+++ b/room.cpp
@@ -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"));