mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 15:42:10 +03:00
Fix mypy error
This commit is contained in:
@@ -403,7 +403,10 @@ class Account(object):
|
||||
"""
|
||||
arr = array("i")
|
||||
for msg in messages:
|
||||
arr.append(getattr(msg, "id", msg))
|
||||
if isinstance(msg, Message):
|
||||
arr.append(getattr(msg, "id"))
|
||||
else:
|
||||
arr.append(msg)
|
||||
msg_ids = ffi.cast("uint32_t*", ffi.from_buffer(arr))
|
||||
lib.dc_markseen_msgs(self._dc_context, msg_ids, len(messages))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user