From 53a5c5ed1a1673cd1be9b6d2660ca54ad14af1c8 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Fri, 22 Dec 2023 08:59:46 -0600 Subject: [PATCH] protocols/matrix: Give the user notice on initial sync. * This can be 30+ seconds of silence, so give user a little feedback that "stuff is happening" --- protocols/matrix/MatrixApp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/protocols/matrix/MatrixApp.cpp b/protocols/matrix/MatrixApp.cpp index 94bca1a..bce705a 100644 --- a/protocols/matrix/MatrixApp.cpp +++ b/protocols/matrix/MatrixApp.cpp @@ -153,6 +153,12 @@ MatrixApp::StartLoop() status.AddInt32("status", (int32)STATUS_ONLINE); 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; opts.timeout = 0; client->sync(opts, &initial_sync_handler);