Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show reactions #655

Merged
merged 10 commits into from
Apr 9, 2020
Merged

Show reactions #655

merged 10 commits into from
Apr 9, 2020

Conversation

krkk
Copy link
Contributor

@krkk krkk commented Mar 14, 2020

...and add ability to react to a message with already existing reactions.

screenshot

Contributes to #596

Copy link
Member

@KitsuneRal KitsuneRal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Generally this looks good but I found one place the code may blow up later on when we add more kinds of annotations.

m_currentRoom->relatedEvents(eventId, EventRelation::Annotation());

for (const auto& a : annotations) {
if (eventCast<const ReactionEvent>(a)->relation().key == key
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll crash dereferencing a null pointer if anything except ReactionEvent hits the list of annotations. That's not possible as yet but may become any time soon.

@KitsuneRal KitsuneRal added the enhancement A feature or change request for Quaternion label Apr 8, 2020
@KitsuneRal KitsuneRal added this to In work in Quaternion 1 via automation Apr 8, 2020
Karol Kosek added 2 commits April 8, 2020 14:34
should fix the incorrect flow height
after opening the first room after starting.
@KitsuneRal KitsuneRal merged commit 3d527e8 into quotient-im:master Apr 9, 2020
Quaternion 1 automation moved this from In work to Version 0.0.9.5 - Done Apr 9, 2020
@krkk krkk deleted the reactions branch April 9, 2020 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature or change request for Quaternion
Projects
Quaternion 1
  
Version 0.0.95 - Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants