mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 18:29:19 +02:00
add a function to get the profile image of a chat easily.
This commit is contained in:
parent
5154f2f12e
commit
9311a78db2
6 changed files with 47 additions and 18 deletions
|
@ -684,7 +684,7 @@ char* mrmailbox_cmdline(mrmailbox_t* mailbox, const char* cmdline)
|
|||
else if( strcmp(cmd, "groupimage")==0 )
|
||||
{
|
||||
if( sel_chat ) {
|
||||
ret = mrmailbox_set_chat_image(mailbox, sel_chat->m_id, (arg1&&arg1[0])?arg1:NULL)? COMMAND_SUCCEEDED : COMMAND_FAILED;
|
||||
ret = mrmailbox_set_chat_profile_image(mailbox, sel_chat->m_id, (arg1&&arg1[0])?arg1:NULL)? COMMAND_SUCCEEDED : COMMAND_FAILED;
|
||||
}
|
||||
else {
|
||||
ret = safe_strdup("No chat selected.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue