mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
add Message.mark_seen shortcut
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user