Fix displaying contact name
This commit is contained in:
@@ -538,7 +538,7 @@ delta_recv_im(DeltaConnectionData *conn, dc_msg_t *msg)
|
|||||||
text = g_strdup_printf("<img id='%d'><br/>%s", image_id, text);
|
text = g_strdup_printf("<img id='%d'><br/>%s", image_id, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
char *name = dc_contact_get_name(from);
|
char *name = dc_contact_get_display_name(from);
|
||||||
int msglen = strlen(name) + 3 + strlen(text);
|
int msglen = strlen(name) + 3 + strlen(text);
|
||||||
|
|
||||||
char *msgtext = malloc(msglen);
|
char *msgtext = malloc(msglen);
|
||||||
|
Reference in New Issue
Block a user