From b64cb2c537d06d822a63f8139ca9bf2ffd80c21f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 4 Oct 2020 11:30:03 +0200 Subject: Matrix: show room name in mention notification, timestamps for messages --- src/QuickMedia.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/QuickMedia.cpp') 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); -- cgit v1.2.3