diff --git a/python/src/deltachat/account.py b/python/src/deltachat/account.py index db75d30d1..31804e4ce 100644 --- a/python/src/deltachat/account.py +++ b/python/src/deltachat/account.py @@ -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))