aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-22 01:42:51 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-22 04:12:03 +0200
commita29f310b8ad0b088860fe05a5499bccef963a503 (patch)
tree7df3abb8e3b3652bf6f7d13ac336e498c60509b9 /plugins
parent7bf0f7107b72af01fea83a7343ce1c32e54865e9 (diff)
Add ctrl+i to view attached images/videos to matrix posts
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index c7cb154..b2e1711 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -10,10 +10,19 @@ namespace QuickMedia {
std::string avatar_url;
};
+ enum class MessageType {
+ TEXT,
+ IMAGE,
+ VIDEO
+ };
+
struct Message {
// Index into |RoomData.user_info|
size_t user_id;
- std::string msg;
+ std::string body;
+ std::string url;
+ std::string thumbnail_url;
+ MessageType type;
};
struct RoomData {