Fix InputDialogId::are_equivalent.
GitOrigin-RevId: 0262b989ad6459aefc61a11b0d1c842cc9ae4a7b
This commit is contained in:
parent
4db8cdc9d9
commit
530267db6c
@ -112,7 +112,7 @@ tl_object_ptr<telegram_api::InputPeer> InputDialogId::get_input_peer() const {
|
||||
bool InputDialogId::are_equivalent(const vector<InputDialogId> &lhs, const vector<InputDialogId> &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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user