From da5796e8a629192ced2bf00a75b5ef5f7a698435 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Fri, 7 Aug 2020 00:53:48 +0300 Subject: [PATCH] Fix python bindings call to dc_chat_get_remaining_mute_duration --- python/src/deltachat/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/deltachat/chat.py b/python/src/deltachat/chat.py index 54a7ede0b..60860d5a3 100644 --- a/python/src/deltachat/chat.py +++ b/python/src/deltachat/chat.py @@ -137,7 +137,7 @@ class Chat(object): :param duration: :returns: Returns the number of seconds the chat is still muted for. (0 for not muted, -1 forever muted) """ - return bool(lib.dc_chat_get_remaining_mute_duration(self.id)) + return lib.dc_chat_get_remaining_mute_duration(self._dc_chat) def get_ephemeral_timer(self): """ get ephemeral timer.