mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00: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