Handle encrypted reactions (#2509)

This commit is contained in:
Benoit Marty 2021-03-19 15:27:56 +01:00
parent fa1de6e6b0
commit 485c44454b
2 changed files with 8 additions and 0 deletions

View file

@ -10,6 +10,7 @@ Improvements 🙌:
Bugfix 🐛:
- Fix bad theme change for the MainActivity
- Handle encrypted reactions (#2509)
Translations 🗣:
-

View file

@ -158,6 +158,13 @@ internal class EventRelationsAggregationProcessor @Inject constructor(@UserId pr
}
}
}
} else if (encryptedEventContent?.relatesTo?.type == RelationType.ANNOTATION) {
// Reaction
if (event.getClearType() == EventType.REACTION) {
// we got a reaction!!
Timber.v("###REACTION e2e in room $roomId , reaction eventID ${event.eventId}")
handleReaction(event, roomId, realm, userId, isLocalEcho)
}
}
}
EventType.REDACTION -> {