aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO5
-rw-r--r--src/QuickMedia.cpp4
2 files changed, 8 insertions, 1 deletions
diff --git a/TODO b/TODO
index cb9bb86..adee6d5 100644
--- a/TODO
+++ b/TODO
@@ -302,4 +302,7 @@ Keep the rooms that we were kicked/banned from so we can still read them and re-
Fix youtube broken without yt-dlp. Unable to download video.
Use different font for chinese, japanese and korean (or maybe only for korean).
Include noto font instead of having to install it. Only require installing it for other noto fonts.
-ctrl+g to reply to someone, starting with /encrypt.
+Re-design matrix /encrypt. You should press G to switch to encryption mode in the room (save it as a room variable, maybe even in file?) and when you do that the matrix icon beside the chat
+ will have a padlock in front of it and input text will be orange.
+ Press G again to switch to regular text mode.
+ Also encrypt media and maybe even reactions.
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 3a2f2f5..d702fc9 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -7479,6 +7479,10 @@ namespace QuickMedia {
} else {
RoomExtraData &room_extra_data = matrix->get_room_extra_data(current_room);
std::string body_text_unformatted = Text::to_printable_string(selected->get_description());
+ MatrixChatBodyItemData *matrix_chat_body_item = static_cast<MatrixChatBodyItemData*>(selected->extra.get());
+ const char *encrypt_prefix = "🔒 ";
+ if(string_starts_with(body_text_unformatted, encrypt_prefix) && matrix_chat_body_item)
+ body_text_unformatted.replace(0, strlen(encrypt_prefix), "/encrypt ");
chat_state = ChatState::EDITING;
currently_operating_on_item = selected;