fix naming

This commit is contained in:
Simon Laux
2020-02-09 10:42:32 +01:00
parent 4acb37156f
commit 5f4274b449
3 changed files with 6 additions and 6 deletions

View File

@@ -108,14 +108,14 @@ class Chat(object):
mute_duration = -1
else:
mute_duration = duration
return bool(lib.dc_chat_set_mute_duration(self._dc_context, self.id, mute_duration))
return bool(lib.dc_set_chat_mute_duration(self._dc_context, self.id, mute_duration))
def unmute(self):
""" unmutes the chat
:returns:
"""
return bool(lib.dc_chat_set_mute_duration(self._dc_context, self.id, 0))
return bool(lib.dc_set_chat_mute_duration(self._dc_context, self.id, 0))
def get_mute_duration(self):
""" Returns the number of seconds until the mute of this chat is lifted.