Own message list requests and acknowledge PM text persistence
This commit is contained in:
1 parent
e3b02e67dc
commit
d82b521a4f
3 files changed
+48
-57
No files matched your search
@@ -1126,7 +1126,9 @@ void dm_send_trampoline(void* arg) {
|
||||
struct UTUN_INSTANCE* inst = req->inst;
|
||||
char conv[64]; strncpy(conv, req->conv_id, sizeof(conv) - 1); conv[sizeof(conv) - 1] = '\0';
|
||||
uint64_t generation = req->generation ? req->generation : dm_history_generation(inst, conv);
|
||||
uint64_t request_id = req->request_id;
|
||||
int rc = dm_history_current(inst, conv, generation) ? dm_send(inst, conv, "text", req->data, req->data_len) : -1;
|
||||
chat_event_submitted(inst, request_id, rc == 0);
|
||||
u_free(arg);
|
||||
if (rc != 0)
|
||||
DEBUG_ERROR(DEBUG_CATEGORY_DM, "%s: dm_send_trampoline — dm_send failed conv=%s",
|
||||
|
||||
Reference in new issue
Block a user