2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

offering to send current username in crash report

This commit is contained in:
John Preston
2016-03-14 12:25:48 +03:00
parent b38163b026
commit f25e63bad7
6 changed files with 108 additions and 20 deletions

View File

@@ -413,6 +413,9 @@ namespace App {
QString pname = (showPhoneChanged || phoneChanged || nameChanged) ? ((showPhone && !phone.isEmpty()) ? formatPhone(phone) : QString()) : data->nameOrPhone;
if (!minimal && d.is_self() && uname != data->username) {
SignalHandlers::setSelfUsername(uname);
}
data->setName(fname, lname, pname, uname);
if (d.has_photo()) {
data->setPhoto(d.vphoto);