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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user