~singpolyma/cheogram-android

74d09d485f2e65c5e8bf4cda5d200b3f834022d0 — Stephen Paul Weber 2 months ago 8f178ff
No reacting to a reaction
1 files changed, 9 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/entities/Message.java
M src/main/java/eu/siacs/conversations/entities/Message.java => src/main/java/eu/siacs/conversations/entities/Message.java +9 -1
@@ 446,7 446,15 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable 

    public Message react(String emoji) {
        final var m = reply();
        m.updateReaction(this, emoji);
        if (getReactions() == null) {
            m.updateReaction(this, emoji);
        } else if (mInReplyTo != null) {
            // Try to send react-to-reaction to parent
            m.updateReaction(mInReplyTo, emoji);
        } else {
            // Do not send react-to-reaction
            m.updateReplyTo(this, new SpannableStringBuilder(emoji));
        }
        return m;
    }