aboutsummaryrefslogtreecommitdiff
path: root/src/QuickMedia.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-25 19:52:11 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-25 19:52:11 +0100
commit3f0473c5aa472ac99d20a46bd7217ee9b6429f62 (patch)
tree81c1ea0a5eaa91a3c07d4afc79f508a5fd4c6523 /src/QuickMedia.cpp
parent17774b25efea1cd6ca9b3ecec4e3ea2f1e9fce28 (diff)
Youtube: show like/dislike count for videos in the youtube description
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r--src/QuickMedia.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 464417a..3ce881e 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -6725,6 +6725,7 @@ namespace QuickMedia {
if(selected_tab == MESSAGES_TAB_INDEX && current_room && current_room->body_item && (!current_room->last_message_read || has_unread_messages) && matrix->is_initial_sync_finished()) {
if(after_token.empty() && !tabs[selected_tab].body->is_bottom_cut_off() && is_window_focused && chat_state != ChatState::URL_SELECTION && !setting_read_marker && read_marker_timer.get_elapsed_time_seconds() >= read_marker_timeout_sec) {
+ // TODO: Only set read marker once every second if the message is not the last message in the room
auto body_items = tabs[selected_tab].body->get_items();
int last_timeline_message = (int)body_items.size() - 1;
for(int i = last_timeline_message - 1; i >= 0; --i) {