Revert "Emergency workaround for message send failures."

This reverts commit 8c81103d6e.
This commit is contained in:
Artem Savkov 2018-11-30 19:37:35 +01:00
parent 8c81103d6e
commit d020155446
1 changed files with 2 additions and 1 deletions

View File

@ -527,7 +527,8 @@ void discord_http_send_msg(struct im_connection *ic, const char *id,
emsg = nmsg;
}
g_string_printf(content, "{\"content\":\"%s\"}", emsg);
g_string_printf(content, "{\"content\":\"%s\", \"nonce\":\"%s\"}",
emsg, dd->nonce);
g_free(emsg);
g_string_printf(request, "POST /api/channels/%s/messages HTTP/1.1\r\n"
"Host: %s\r\n"