Add a way to add private notes for users on their profile
This is a common feature in other chat applications (like Discord) as a way to keep track of important information. While there isn't a standard API for this, we can use account data to store notes.
This commit is contained in:
@@ -234,6 +234,16 @@ public:
|
||||
*/
|
||||
Q_INVOKABLE bool supportsMatrixSpecVersion(const QString &version);
|
||||
|
||||
/**
|
||||
* @return The private note for this user, if set.
|
||||
*/
|
||||
Q_INVOKABLE QString noteForUser(const QString &userId);
|
||||
|
||||
/**
|
||||
* @brief Sets the private note for this user.
|
||||
*/
|
||||
Q_INVOKABLE void setNoteForUser(const QString &userId, const QString ¬e);
|
||||
|
||||
Q_SIGNALS:
|
||||
void globalUrlPreviewEnabledChanged();
|
||||
void labelChanged();
|
||||
|
||||
Reference in New Issue
Block a user