aboutsummaryrefslogtreecommitdiff
path: root/lib/settings.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-08-04 11:38:20 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-08-04 11:38:20 +0200
commit5849686e96b4a7277f2b2152ff3aa76cc6d0f18e (patch)
tree43dbfbe05e9825a03cd4dbd0ddaaa4240f1c7d5f /lib/settings.h
parent83476d31854f403b7017003a560c2d5545360487 (diff)
downloadlibquotient-5849686e96b4a7277f2b2152ff3aa76cc6d0f18e.tar.gz
libquotient-5849686e96b4a7277f2b2152ff3aa76cc6d0f18e.zip
User: optimise names/avatars storing and updating
The current mechanism relied on a complicated and fragile machinery around setNameForRoom() and setAvatarForRoom() that maintained the "most used" entity for a given user along with "other" ones. Given that per-room avatars are pretty rare in Matrix, it's also been inefficient as commit c69f100e shows. The new mechanism stores the "default" (as per user profile) name and avatar and maintains a singleton map of avatar objects across all users. Per-user profile only (normally) exists for the local user so there's yet another inefficiency - this will be fixed in 0.7 by introducing a special class for a user profile.
Diffstat (limited to 'lib/settings.h')
0 files changed, 0 insertions, 0 deletions