protocols/matrix: Record message when from server timestamp on initial_sync
This commit is contained in:
parent
4964605432
commit
1a0ee401be
|
@ -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);
|
||||||
|
|
Ŝarĝante…
Reference in New Issue