[Reactions] Allow reaction only on room messages (Fix #2476).

This commit is contained in:
SBiOSoftWhare
2019-06-06 13:50:45 +02:00
parent ba7bf74468
commit 30cf348c65
+1 -1
View File
@@ -5097,7 +5097,7 @@
[self contextualMenuAnimationCompletionAfterBeingShown:YES];
}];
if (RiotSettings.shared.messageReaction && [cell isKindOfClass:MXKRoomBubbleTableViewCell.class])
if (RiotSettings.shared.messageReaction && [cell isKindOfClass:MXKRoomBubbleTableViewCell.class] && [self.roomDataSource canReactToEventWithId:event.eventId])
{
MXKRoomBubbleTableViewCell *roomBubbleTableViewCell = (MXKRoomBubbleTableViewCell*)cell;
MXKRoomBubbleCellData *bubbleCellData = roomBubbleTableViewCell.bubbleData;