Commit f72f8cc8 authored by Mohammed Sadiq's avatar Mohammed Sadiq
Browse files

mm-chat: Send messages in the order they are added

parent fbf3e739
Pipeline #70890 passed with stages
in 8 minutes and 23 seconds
...@@ -374,7 +374,7 @@ chatty_mm_chat_send_message_async (ChattyChat *chat, ...@@ -374,7 +374,7 @@ chatty_mm_chat_send_message_async (ChattyChat *chat,
task = g_task_new (self, NULL, callback, user_data); task = g_task_new (self, NULL, callback, user_data);
g_task_set_task_data (task, g_object_ref (message), g_object_unref); g_task_set_task_data (task, g_object_ref (message), g_object_unref);
chatty_mm_chat_append_message (CHATTY_MM_CHAT (chat), message); chatty_mm_chat_append_message (CHATTY_MM_CHAT (chat), message);
g_queue_push_head (self->message_queue, task); g_queue_push_tail (self->message_queue, task);
mm_chat_send_message_from_queue (self); mm_chat_send_message_from_queue (self);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment