aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-08-19 17:56:55 +0200
committerdec05eba <dec05eba@protonmail.com>2021-08-19 17:56:55 +0200
commit40909b91afb18a1195031e3f570be0c38b58d127 (patch)
treea4a8dbbcc33ae7fd9df46f203c8fed4262975490
parent4ff87535e7aae35bfbd66fe88402dcb513af249c (diff)
Sneed unread messages for afgter token
-rw-r--r--README.md3
-rw-r--r--TODO2
-rw-r--r--src/QuickMedia.cpp1
3 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index e7fa9dc..27bddb1 100644
--- a/README.md
+++ b/README.md
@@ -145,7 +145,8 @@ Type text and then wait and QuickMedia will automatically search.\
`/react [text]`: React to the selected message (also works if you are replying to a message).
## Environment variables
Set `QM_PHONE_FACTOR=1` to disable the room list side panel in matrix.\
-Set `QM_THEME` to one of the following: `default, nord` to change the theme.
+Set `QM_THEME` to one of the following: `default, nord` to change the theme.\
+If `xdg-open` is not installed then the `BROWSER` environment variable is used to open links in a browser.
## UI scaling
Either set the `GDK_SCALE` environment variable or add `Xft.dpi` to `$HOME/.Xresources` (`xrdb` which is part of the `xorg-xrdb` package needs to be installed).\
For example a value of 96 for the `Xft.dpi` means 1.0 scaling and 144 (96*1.5) means 1.5 scaling.\
diff --git a/TODO b/TODO
index 0dbf3c8..1b5592c 100644
--- a/TODO
+++ b/TODO
@@ -123,8 +123,6 @@ In the downloader if we already have the url in thumbnail/video cache, then copy
Update timestamp of messages posted with matrix (and move them to the correct place in the timeline) when we receive the message from the server. This is needed when the localtime is messed up (for example when rebooting from windows into linux).
When sfml dependency is removed use libvips for image manipulation. Its a very fast library, especially for thumbnail creation.
Notification race condition when fetching the first notifications page and receiving a notification immediately after the first sync? we might end up with a duplicate notification.
-Submit on notifications item in matrix should jump to the message in the room.
-Notifications should load their replied-to-message.
Readd copying of Text in Body copy constructor. Find out why we need to make the text dirty on copy.
Body items that are no longer visible should stop their thumbnail download/creation (moving to bottom of file-manager is very slow).
Fix body flickering when moving up and there is a new local image to load. It happens because we have no idea how large the thumbnail is before loading it.
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index f809b70..8fd6b0b 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -6481,6 +6481,7 @@ namespace QuickMedia {
add_new_messages_to_current_room(sync_data.messages);
modify_related_messages_in_current_room(sync_data.messages);
process_reactions(sync_data.messages);
+ has_unread_messages = false;
} else {
auto it = std::find_if(sync_data.messages.begin(), sync_data.messages.end(), [](const std::shared_ptr<Message> &message) {
return message->related_event_type == RelatedEventType::NONE || message->related_event_type == RelatedEventType::REPLY;