mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
Fix mypy error
This commit is contained in:
@@ -403,7 +403,10 @@ class Account(object):
|
|||||||
"""
|
"""
|
||||||
arr = array("i")
|
arr = array("i")
|
||||||
for msg in messages:
|
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))
|
msg_ids = ffi.cast("uint32_t*", ffi.from_buffer(arr))
|
||||||
lib.dc_markseen_msgs(self._dc_context, msg_ids, len(messages))
|
lib.dc_markseen_msgs(self._dc_context, msg_ids, len(messages))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user