From 530267db6cfff317da9b63248b3d04d06ce87a82 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 29 May 2020 09:48:32 +0300 Subject: [PATCH] Fix InputDialogId::are_equivalent. GitOrigin-RevId: 0262b989ad6459aefc61a11b0d1c842cc9ae4a7b --- td/telegram/InputDialogId.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/InputDialogId.cpp b/td/telegram/InputDialogId.cpp index ffe4cfc3f..2de22a0fe 100644 --- a/td/telegram/InputDialogId.cpp +++ b/td/telegram/InputDialogId.cpp @@ -112,7 +112,7 @@ tl_object_ptr InputDialogId::get_input_peer() const { bool InputDialogId::are_equivalent(const vector &lhs, const vector &rhs) { auto lhs_it = lhs.begin(); auto rhs_it = rhs.begin(); - while (lhs_it != lhs.end() && rhs_it != rhs.end()) { + while (lhs_it != lhs.end() || rhs_it != rhs.end()) { while (lhs_it != lhs.end() && lhs_it->get_dialog_id().get_type() == DialogType::SecretChat) { ++lhs_it; }