diff --git a/python/src/deltachat/_build.py b/python/src/deltachat/_build.py index 687be4ac3..2af24eee8 100644 --- a/python/src/deltachat/_build.py +++ b/python/src/deltachat/_build.py @@ -145,6 +145,7 @@ def extract_defines(flags): | DC_STR | DC_CONTACT_ID | DC_GCL + | DC_GCM | DC_SOCKET | DC_CHAT | DC_PROVIDER diff --git a/python/tests/test_account.py b/python/tests/test_account.py index 6540b3e85..321215d8d 100644 --- a/python/tests/test_account.py +++ b/python/tests/test_account.py @@ -614,7 +614,7 @@ class TestOfflineChat: lp.sec("check message count of only system messages (without daymarkers)") dc_array = ffi.gc( - lib.dc_get_chat_msgs(ac1._dc_context, chat.id, 2, 0), # todo replace `2` with const.DC_GCM_SYSTEM_ONLY + lib.dc_get_chat_msgs(ac1._dc_context, chat.id, const.DC_GCM_SYSTEM_ONLY, 0), lib.dc_array_unref ) assert len(list(iter_array(dc_array, lambda x: x))) == 2