From b51a3e81dd2178c681226458ca4bb73ae98a5e34 Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Sat, 20 Nov 2021 13:07:17 +0100 Subject: You can unblock people now and some small fixes - the chatlist is now properly updated on blocking a contact request or contact. - A small message is now displayed after blocking a contact request - A list of blocked contact can be found on the settings page, after clicking 'View blocked users' - The message timestamp is now slightly padded --- context.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'context.h') diff --git a/context.h b/context.h index bad963e..8990524 100644 --- a/context.h +++ b/context.h @@ -37,6 +37,8 @@ public: Q_INVOKABLE DcChat *getChat(uint32_t chatId); Q_INVOKABLE QVariantList getContacts(uint32_t flags, QString query); Q_INVOKABLE QVariantList getMsgIdList(uint32_t chatId); + Q_INVOKABLE QVariantMap getBlockedContacts(); + Q_INVOKABLE void blockContact(uint32_t contactId, uint32_t blockMode); Q_INVOKABLE int getFreshMsgCnt(uint32_t chatId); Q_INVOKABLE void marknoticedChat(uint32_t chatId); Q_INVOKABLE void markseenMsgs(QVector msg_ids); -- cgit v1.2.3-70-g09d2