2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Set correct username to crash annotations.

This commit is contained in:
John Preston
2020-06-30 20:41:25 +04:00
parent 5ea5d3c60d
commit 9fb12b6093
2 changed files with 18 additions and 3 deletions

View File

@@ -462,9 +462,6 @@ not_null<UserData*> Session::processUser(const MTPUser &data) {
: QString())
: result->nameOrPhone;
if (!minimal && data.is_self() && uname != result->username) {
CrashReports::SetAnnotation("Username", uname);
}
result->setName(fname, lname, pname, uname);
if (const auto photo = data.vphoto()) {
result->setPhoto(*photo);