aboutsummaryrefslogtreecommitdiff
path: root/lib/user.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-08-17 19:38:49 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-08-17 19:38:49 +0200
commit812e460f2159556ad00ab838d58b349fa3542047 (patch)
treee123b30a6ffd3de2c72b422d3fa951f45276f3da /lib/user.h
parent4a5d51d7bc2b1b23a96c347b6127ec64d7c298b2 (diff)
downloadlibquotient-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.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/user.h b/lib/user.h
index ceea7c48..a4985877 100644
--- a/lib/user.h
+++ b/lib/user.h
@@ -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