Change ReactionRealtesTo to RelatesTo
This commit is contained in:
parent
0d1dd29b19
commit
9a76db85d5
@ -127,5 +127,5 @@ private:
|
|||||||
std::optional<std::string> room_id;
|
std::optional<std::string> room_id;
|
||||||
std::optional<std::string> event_id;
|
std::optional<std::string> event_id;
|
||||||
TimelineModel *model_;
|
TimelineModel *model_;
|
||||||
mtx::common::ReactionRelatesTo relation;
|
mtx::common::RelatesTo relation;
|
||||||
};
|
};
|
||||||
|
@ -211,7 +211,7 @@ encrypt_group_message(const std::string &room_id, const std::string &device_id,
|
|||||||
|
|
||||||
// relations shouldn't be encrypted...
|
// relations shouldn't be encrypted...
|
||||||
mtx::common::ReplyRelatesTo relation;
|
mtx::common::ReplyRelatesTo relation;
|
||||||
mtx::common::ReactionRelatesTo r_relation;
|
mtx::common::RelatesTo r_relation;
|
||||||
|
|
||||||
if (body["content"].contains("m.relates_to") &&
|
if (body["content"].contains("m.relates_to") &&
|
||||||
body["content"]["m.relates_to"].contains("m.in_reply_to")) {
|
body["content"]["m.relates_to"].contains("m.in_reply_to")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user