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

Version 0.9.42: critical bug fix in contacts box, message edit fix.

This commit is contained in:
John Preston
2016-04-12 11:13:03 +03:00
parent af014b3c14
commit b07cd1264c
8 changed files with 26 additions and 24 deletions

View File

@@ -1095,7 +1095,7 @@ void ContactsInner::selectSkip(int32 dir) {
for (auto i = _contacts->cfind(_sel), end = _contacts->cend(); i != end && contactData(*i)->inchat; ++i) {
_sel = *i;
}
if (contactData(_sel)->inchat) {
if (_sel && contactData(_sel)->inchat) {
_sel = nullptr;
}
if (!_sel) {
@@ -1114,11 +1114,13 @@ void ContactsInner::selectSkip(int32 dir) {
if (_byUsernameSel < 0) {
if (!_contacts->isEmpty()) {
if (!_newItemSel && !_sel) _sel = *(_contacts->cend() - 1);
for (auto i = _contacts->cfind(_sel), b = _contacts->cbegin(); i != b && contactData(*i)->inchat; --i) {
_sel = *i;
}
if (contactData(_sel)->inchat) {
_sel = nullptr;
if (_sel) {
for (auto i = _contacts->cfind(_sel), b = _contacts->cbegin(); i != b && contactData(*i)->inchat; --i) {
_sel = *i;
}
if (contactData(_sel)->inchat) {
_sel = nullptr;
}
}
}
}