From a29f310b8ad0b088860fe05a5499bccef963a503 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 22 Sep 2020 01:42:51 +0200 Subject: Add ctrl+i to view attached images/videos to matrix posts --- plugins/Matrix.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'plugins') 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 { -- cgit v1.2.3