mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Set correct username to crash annotations.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user