Skip to content

dc_get_chat_contacts should always return an array and never null - #346

Closed
Jikstra wants to merge 2 commits into
masterfrom
fix_null_ptr_get_chat_contacts
Closed

dc_get_chat_contacts should always return an array and never null#346
Jikstra wants to merge 2 commits into
masterfrom
fix_null_ptr_get_chat_contacts

Conversation

@Jikstra

@JikstraJikstra commented Aug 12, 2019

Copy link
Copy Markdown
Contributor

pointer otherwise we break the ffi api

https://c.delta.chat/classdc__context__t.html#a9939ef09de5a5026dbac6fe209186969

Returns
An array of contact IDs belonging to the chat; must be freed using dc_array_unref() when done.

@Jikstra
Jikstraforce-pushed the fix_null_ptr_get_chat_contacts branch from a82c8f0 to 42b56ccCompareAugust 12, 2019 22:20
@JikstraJikstra changed the title dc_get_chat_contacts should always return an array and never a nulldc_get_chat_contacts should always return an array and never nullAug 12, 2019
@link2xt

Copy link
Copy Markdown
Collaborator

I am already modifying this function in #334, so I would rather just do it there

@JikstraJikstra closed this Aug 12, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Jikstra@link2xt