aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/profile.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-09-04 22:45:04 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-09-04 22:45:16 +0200
commitc641e3f070d6687e10a2cdb9fe3e4f7d12c5704f (patch)
treebf027549e8848c0fdf14acd5a553293135830e24 /lib/csapi/profile.h
parentd7820ada21fb29b273a68a5ea69477ef5763d5de (diff)
downloadlibquotient-c641e3f070d6687e10a2cdb9fe3e4f7d12c5704f.tar.gz
libquotient-c641e3f070d6687e10a2cdb9fe3e4f7d12c5704f.zip
csapi/profile.*: require displayname/avatar_url
See https://github.com/matrix-org/matrix-doc/issues/2717
Diffstat (limited to 'lib/csapi/profile.h')
-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.