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) {
return new ReplyPreviewError();
}
else if (replyTextTile && this._interactive) {
// if this._interactive = false, this is already a reply preview, don't nest replies for now.
else if (replyTextTile && !this._isReplyPreview) {
// if this._isReplyPreview = true, this is already a reply preview, don't nest replies for now.
return new ReplyPreviewView(replyTextTile);
}
else {