aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-22 10:29:58 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-22 10:29:58 +0100
commit5dd0248e16522a3672c58a7892d549840257e8dd (patch)
tree5c2dc3a8b925627216f28453862413f03644766b /plugins
parent4ddc6897dd53274bb68eb6401715c718a212d9ab (diff)
Matrix: add reactions
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index 8e96c54..1a0ffe0 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -40,8 +40,9 @@ namespace QuickMedia {
AUDIO,
FILE,
REDACTION,
- UNIMPLEMENTED,
- MEMBERSHIP
+ REACTION,
+ MEMBERSHIP,
+ UNIMPLEMENTED
};
bool is_visual_media_message_type(MessageType message_type);
@@ -50,7 +51,8 @@ namespace QuickMedia {
NONE,
REPLY,
EDIT,
- REDACTION
+ REDACTION,
+ REACTION
};
class MatrixEvent {
@@ -71,6 +73,7 @@ namespace QuickMedia {
bool cache = false;
time_t timestamp = 0; // In milliseconds
MessageType type;
+ // TODO: Store body item ref here
};
struct RoomData {