From 1f92a5a957f7de38ef7c2bf425b8d6ac7fa1239c Mon Sep 17 00:00:00 2001 From: Arnav Rawat Date: Mon, 22 Feb 2021 13:42:42 -0600 Subject: Adds ability remove the avatar Not possible previously --- lib/user.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/user.cpp') diff --git a/lib/user.cpp b/lib/user.cpp index 9f0386f4..c4c4fec8 100644 --- a/lib/user.cpp +++ b/lib/user.cpp @@ -154,6 +154,11 @@ bool User::setAvatar(QIODevice* source) return doSetAvatar(source); } +void User::removeAvatar() +{ + connection()->callApi(id(), ""); +} + void User::requestDirectChat() { connection()->requestDirectChat(this); } void User::ignore() { connection()->addToIgnoredUsers(this); } -- cgit v1.2.3