1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-05 10:39:27 +02:00

use proper dc function for contact listing as per review from @r10s

This commit is contained in:
holger krekel 2018-09-21 12:39:23 +02:00
parent 5e9c3471b6
commit 85cb0d679e
2 changed files with 2 additions and 1 deletions

View file

@ -324,6 +324,7 @@ class EventLogger:
return ev
def get_matching(self, event_name_regex):
print ("-- waiting for event with regex:", event_name_regex, "--")
rex = re.compile("(?:{}).*".format(event_name_regex))
while 1:
ev = self.get()

View file

@ -150,7 +150,7 @@ class Chat(object):
:returns: None
"""
dc_array = ffi.gc(
lib.dc_get_contacts(self._dc_context, lib.DC_GCL_ADD_SELF, ffi.NULL),
lib.dc_get_chat_contacts(self._dc_context, self.id),
lib.dc_array_unref
)
return list(iter_array(