Use different flag

This commit is contained in:
RMidhunSuresh 2021-12-21 16:11:06 +05:30
parent 0c3f16e5f6
commit d69059de68

View File

@ -30,8 +30,8 @@ export class TextMessageView extends BaseMessageView {
if (vm.isReply && !replyTextTile) { if (vm.isReply && !replyTextTile) {
return new ReplyPreviewError(); return new ReplyPreviewError();
} }
else if (replyTextTile && this._interactive) { else if (replyTextTile && !this._isReplyPreview) {
// if this._interactive = false, this is already a reply preview, don't nest replies for now. // if this._isReplyPreview = true, this is already a reply preview, don't nest replies for now.
return new ReplyPreviewView(replyTextTile); return new ReplyPreviewView(replyTextTile);
} }
else { else {