add Message.mark_seen shortcut

This commit is contained in:
holger krekel
2020-03-04 12:03:11 +01:00
parent 33dd747ec7
commit 36b50436d7
3 changed files with 6 additions and 2 deletions

View File

@@ -276,6 +276,10 @@ class Message(object):
""" return True if it's a file message. """
return self._view_type == const.DC_MSG_FILE
def mark_seen(self):
""" mark this message as seen. """
self.account.mark_seen_messages([self.id])
# some code for handling DC_MSG_* view types