aboutsummaryrefslogtreecommitdiff
path: root/src/QuickMedia.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-04 11:30:03 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-04 14:15:24 +0200
commitb64cb2c537d06d822a63f8139ca9bf2ffd80c21f (patch)
treedaf7dc651b561c277d605a2eb097f2858150b7ec /src/QuickMedia.cpp
parent8a21f2d4f70ecd4509aa8976c5e40ee70395a6a0 (diff)
Matrix: show room name in mention notification, timestamps for messages
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r--src/QuickMedia.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 6c3bc34..f18c0ce 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -3383,7 +3383,7 @@ namespace QuickMedia {
message->mentions_me = false;
// TODO: What if the message or username begins with "-"? also make the notification image be the avatar of the user
std::string desc = "QuickMedia Matrix\n\n" + message->body;
- show_notification(matrix->message_get_author_displayname(message.get()), desc.c_str());
+ show_notification(matrix->message_get_author_displayname(message.get()) + " (" + room->name + ")", desc);
}
}
@@ -3866,6 +3866,11 @@ namespace QuickMedia {
chat_input.set_text("");
chat_state = ChatState::NAVIGATING;
currently_operating_on_item = nullptr;
+ if(typing) {
+ fprintf(stderr, "Stopped typing\n");
+ typing = false;
+ typing_futures.push_back(std::async(typing_async_func, false, current_room_id));
+ }
}
//chat_input.on_event(event);
chat_input.process_event(event);