Skip to content

Commit b2ef64c

Browse files
committed
Don't ignore unsupported usernames.
1 parent 3fc8c95 commit b2ef64c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

td/telegram/Usernames.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ Usernames::Usernames(string &&first_username, vector<telegram_api::object_ptr<te
3232
for (auto &username : usernames) {
3333
if (username->editable_) {
3434
if (was_editable) {
35-
LOG(ERROR) << "Receive two editable usernames in " << to_string(usernames);
36-
return;
35+
username->editable_ = false;
36+
} else {
37+
is_editable_username_disabled = !username->active_;
38+
was_editable = true;
3739
}
38-
is_editable_username_disabled = !username->active_;
39-
was_editable = true;
4040
}
4141
}
4242

0 commit comments

Comments
 (0)