A crash fix, as well as fixes for the latest matrix_client #26

Merged
kallisti5 merged 6 commits from fixes into master 2023-12-29 20:28:16 -06:00
Showing only changes of commit 1a0ee401be - Show all commits

View File

@ -303,6 +303,7 @@ room_sync(mtx::responses::Rooms rooms)
BMessage msg(IM_MESSAGE); BMessage msg(IM_MESSAGE);
msg.AddInt32("im_what", IM_MESSAGE_RECEIVED); msg.AddInt32("im_what", IM_MESSAGE_RECEIVED);
msg.AddString("body", event->content.body.c_str()); msg.AddString("body", event->content.body.c_str());
msg.AddInt64("when", event->origin_server_ts / 1000);
msg.AddString("chat_id", chat_id); msg.AddString("chat_id", chat_id);
msg.AddString("user_id", event->sender.c_str()); msg.AddString("user_id", event->sender.c_str());
app->SendMessage(msg); app->SendMessage(msg);