mirror of
https://github.com/chatmail/core.git
synced 2026-05-23 00:36:32 +03:00
python: fix Chat.is_group() documentation
False is returned not only for 1:1 chat, but also in other cases, such as mailing lists.
This commit is contained in:
@@ -64,7 +64,7 @@ class Chat(object):
|
|||||||
def is_group(self) -> bool:
|
def is_group(self) -> bool:
|
||||||
""" return true if this chat is a group chat.
|
""" return true if this chat is a group chat.
|
||||||
|
|
||||||
:returns: True if chat is a group-chat, false if it's a contact 1:1 chat.
|
:returns: True if chat is a group-chat, false otherwise
|
||||||
"""
|
"""
|
||||||
return lib.dc_chat_get_type(self._dc_chat) == const.DC_CHAT_TYPE_GROUP
|
return lib.dc_chat_get_type(self._dc_chat) == const.DC_CHAT_TYPE_GROUP
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user