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:
parent
5e9c3471b6
commit
85cb0d679e
2 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue