aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO4
-rw-r--r--src/plugins/Matrix.cpp10
2 files changed, 8 insertions, 6 deletions
diff --git a/TODO b/TODO
index 578a5a8..512a63f 100644
--- a/TODO
+++ b/TODO
@@ -126,4 +126,6 @@ Implement m.room.tombstone.
Show a marker when a room uses encryption.
Remove replied-to message text in room preview. That shows ignored users text and we want to see the reply message instead anyways.
Update room name/avatar with new data in /sync.
-Read marker is incorrect if the last message is an edit/redact, because they are hidden and replaces other body items instead. \ No newline at end of file
+Read marker is incorrect if the last message is an edit/redact, because they are hidden and replaces other body items instead.
+Scroll tabs if there are more than 3 tab items and show arrow on left/right side when there are more items to see.
+/sync doesn't include user displayname/avatar for new messages (synapse bug?). Use /profile in those cases (merge with fetching message by id used for replies and pinned messages). (Mark messages user as not resolved). \ No newline at end of file
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index d6034de..ce003a0 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -1099,12 +1099,8 @@ namespace QuickMedia {
}
#endif
- sync_end:
- if(sync_running)
- std::this_thread::sleep_for(std::chrono::milliseconds(500));
-
// TODO: Circulate file
- FILE *sync_cache_file = fopen(matrix_cache_dir.data.c_str(), initial_sync ? "wb" : "ab");
+ sync_cache_file = fopen(matrix_cache_dir.data.c_str(), initial_sync ? "wb" : "ab");
initial_sync = false;
if(sync_cache_file) {
if(json_root.IsObject()) {
@@ -1116,6 +1112,10 @@ namespace QuickMedia {
}
fclose(sync_cache_file);
}
+
+ sync_end:
+ if(sync_running)
+ std::this_thread::sleep_for(std::chrono::milliseconds(500));
}
});
}