diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-08-17 19:38:49 +0200 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-08-17 19:38:49 +0200 |
commit | 812e460f2159556ad00ab838d58b349fa3542047 (patch) | |
tree | e123b30a6ffd3de2c72b422d3fa951f45276f3da /lib/user.h | |
parent | 4a5d51d7bc2b1b23a96c347b6127ec64d7c298b2 (diff) | |
download | libquotient-812e460f2159556ad00ab838d58b349fa3542047.tar.gz libquotient-812e460f2159556ad00ab838d58b349fa3542047.zip |
Fetch user profile when needed
5849686e introduced a new way of storing user avatars and names -
unfortunately it didn't fully cover the case of the user's default
(profile) name and avatar. This commit fixes it; in 0.6.x branch,
the fix requires a const_cast<> hack since name() and avatarObject()
invocations are used as triggers to fetch the profile. 0.7 will have
User::fetchProfile() method instead.
Diffstat (limited to 'lib/user.h')
-rw-r--r-- | lib/user.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -163,7 +163,7 @@ signals: private slots: // TODO: remove in 0.7 /// \deprecated - void updateName(const QString&, const Room* = nullptr); + void updateName(const QString& newName, const Room* r = nullptr); /// \deprecated void updateName(const QString&, const QString&, const Room* = nullptr); /// \deprecated @@ -172,8 +172,5 @@ private slots: // TODO: remove in 0.7 private: class Private; QScopedPointer<Private> d; - - template <typename SourceT> - bool doSetAvatar(SourceT&& source); }; } // namespace Quotient |