Fix bad check for story context.

This commit is contained in:
Alex Hart 2022-03-30 10:05:31 -03:00 committed by Cody Henthorne
parent 2b15fc2966
commit f17f45f277

View file

@ -887,7 +887,7 @@ public final class MessageContentProcessor {
private @Nullable MessageId handleReaction(@NonNull SignalServiceContent content, @NonNull SignalServiceDataMessage message, @NonNull Recipient senderRecipient) throws StorageFailedException {
log(content.getTimestamp(), "Handle reaction for message " + message.getReaction().get().getTargetSentTimestamp());
if (content.getStoryMessage().isPresent()) {
if (message.getStoryContext().isPresent()) {
log(content.getTimestamp(), "Reaction has a story context. Treating as a story reaction.");
handleStoryReaction(content, message, senderRecipient);
return null;