A crash fix, as well as fixes for the latest matrix_client #26
|
@ -153,6 +153,12 @@ MatrixApp::StartLoop()
|
||||||
status.AddInt32("status", (int32)STATUS_ONLINE);
|
status.AddInt32("status", (int32)STATUS_ONLINE);
|
||||||
SendMessage(status);
|
SendMessage(status);
|
||||||
|
|
||||||
|
BMessage syncStatus(IM_MESSAGE);
|
||||||
|
syncStatus.AddInt32("im_what", IM_MESSAGE_RECEIVED);
|
||||||
|
syncStatus.AddString("user_name", APP_NAME);
|
||||||
|
syncStatus.AddString("body", B_TRANSLATE("Synchronizing with Matrix server. Please wait..."));
|
||||||
|
SendMessage(syncStatus);
|
||||||
|
|
||||||
mtx::http::SyncOpts opts;
|
mtx::http::SyncOpts opts;
|
||||||
opts.timeout = 0;
|
opts.timeout = 0;
|
||||||
client->sync(opts, &initial_sync_handler);
|
client->sync(opts, &initial_sync_handler);
|
||||||
|
|
Ŝarĝante…
Reference in New Issue