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

This commit is contained in:
SBiOSoftWhare 2019-06-06 13:50:45 +02:00
parent 5e964ff531
commit daab6950d4

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;