aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-09-04 07:59:50 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-09-04 07:59:50 +0200
commitcb47079d239b0a4bcd0346d43cccbebfc9e5a285 (patch)
tree1ce6c59d7b86ebbdef5bbc458fc61028aee78df1 /lib/csapi
parent86665ae5a075400e55bf229cfa2e998d376d095f (diff)
downloadlibquotient-cb47079d239b0a4bcd0346d43cccbebfc9e5a285.tar.gz
libquotient-cb47079d239b0a4bcd0346d43cccbebfc9e5a285.zip
csapi/profile.h: require displayname/avatar_url
See https://github.com/matrix-org/matrix-doc/issues/2717
Diffstat (limited to 'lib/csapi')
-rw-r--r--lib/csapi/profile.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/csapi/profile.h b/lib/csapi/profile.h
index 88bf3166..3858fab2 100644
--- a/lib/csapi/profile.h
+++ b/lib/csapi/profile.h
@@ -24,7 +24,7 @@ public:
* The new display name for this user.
*/
explicit SetDisplayNameJob(const QString& userId,
- const QString& displayname = {});
+ const QString& displayname);
};
/*! \brief Get the user's display name.
@@ -73,8 +73,7 @@ public:
* \param avatarUrl
* The new avatar URL for this user.
*/
- explicit SetAvatarUrlJob(const QString& userId,
- const QString& avatarUrl = {});
+ explicit SetAvatarUrlJob(const QString& userId, const QString& avatarUrl);
};
/*! \brief Get the user's avatar URL.