Rename is_similar to are_similar.

GitOrigin-RevId: 18988afaefde2f228e9e0c5be82aaa094993f0c2
This commit is contained in:
levlam 2020-06-02 04:18:31 +03:00
parent 23bec2101f
commit 7aaf6a4641

View File

@ -4994,7 +4994,7 @@ struct MessagesManager::DialogFilter {
InputDialogId::get_input_peers(excluded_dialog_ids));
}
static bool is_similar(const DialogFilter &lhs, const DialogFilter &rhs) {
static bool are_similar(const DialogFilter &lhs, const DialogFilter &rhs) {
if (lhs.title == rhs.title) {
return true;
}
@ -15739,7 +15739,7 @@ void MessagesManager::create_dialog_filter(td_api::object_ptr<td_api::chatFilter
bool at_beginning = false;
for (auto &recommended_dialog_filter : recommended_dialog_filters_) {
if (DialogFilter::is_similar(*recommended_dialog_filter.dialog_filter, *dialog_filter)) {
if (DialogFilter::are_similar(*recommended_dialog_filter.dialog_filter, *dialog_filter)) {
at_beginning = true;
}
}