Compare commits

..

2 Commits

Author SHA1 Message Date
47cc4c1772 Fix displaying contact name 2022-05-23 21:28:27 +01:00
3e146313a9 Get compiling against libdeltachat 1.83 2022-05-23 20:47:35 +01:00
2 changed files with 3 additions and 4 deletions

View File

@@ -183,8 +183,7 @@ delta_event_handler(void *context)
dc_str_unref(warn);
break;
}
case DC_EVENT_ERROR:
case DC_EVENT_ERROR_NETWORK: {
case DC_EVENT_ERROR: {
int errcode = dc_event_get_data1_int(event);
char *err = dc_event_get_data2_str(event);
purple_debug_info(PLUGIN_ID, "ERROR from Delta: %d: %s\n", errcode, err);
@@ -539,7 +538,7 @@ delta_recv_im(DeltaConnectionData *conn, dc_msg_t *msg)
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);
char *msgtext = malloc(msglen);

View File

@@ -2,7 +2,7 @@
#define DELTA_CONNECTION_H
#include <glib.h>
#include <deltachat/deltachat.h>
#include <deltachat.h>
#include <pthread.h>
struct _PurpleConnection;