Compare commits
2 Commits
18ae21daad
...
main
Author | SHA1 | Date | |
---|---|---|---|
47cc4c1772 | |||
3e146313a9 |
@@ -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);
|
||||
|
@@ -2,7 +2,7 @@
|
||||
#define DELTA_CONNECTION_H
|
||||
|
||||
#include <glib.h>
|
||||
#include <deltachat/deltachat.h>
|
||||
#include <deltachat.h>
|
||||
#include <pthread.h>
|
||||
|
||||
struct _PurpleConnection;
|
||||
|
Reference in New Issue
Block a user