mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
include constant and use it
This commit is contained in:
@@ -145,6 +145,7 @@ def extract_defines(flags):
|
|||||||
| DC_STR
|
| DC_STR
|
||||||
| DC_CONTACT_ID
|
| DC_CONTACT_ID
|
||||||
| DC_GCL
|
| DC_GCL
|
||||||
|
| DC_GCM
|
||||||
| DC_SOCKET
|
| DC_SOCKET
|
||||||
| DC_CHAT
|
| DC_CHAT
|
||||||
| DC_PROVIDER
|
| DC_PROVIDER
|
||||||
|
|||||||
@@ -614,7 +614,7 @@ class TestOfflineChat:
|
|||||||
|
|
||||||
lp.sec("check message count of only system messages (without daymarkers)")
|
lp.sec("check message count of only system messages (without daymarkers)")
|
||||||
dc_array = ffi.gc(
|
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
|
lib.dc_array_unref
|
||||||
)
|
)
|
||||||
assert len(list(iter_array(dc_array, lambda x: x))) == 2
|
assert len(list(iter_array(dc_array, lambda x: x))) == 2
|
||||||
|
|||||||
Reference in New Issue
Block a user