mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Remove supergroup migrate messages.
This commit is contained in:
@@ -407,14 +407,14 @@ void Controller::showJumpToDate(Dialogs::Key chat, QDate requestedDate) {
|
||||
return history->blocks.front()->messages.front()->dateTime().date();
|
||||
}
|
||||
}
|
||||
} else if (history->chatsListTimeId() != 0) {
|
||||
return ParseDateTime(history->chatsListTimeId()).date();
|
||||
} else if (history->chatListTimeId() != 0) {
|
||||
return ParseDateTime(history->chatListTimeId()).date();
|
||||
}
|
||||
} else if (const auto feed = chat.feed()) {
|
||||
/*if (chatScrollPosition(feed)) { // #TODO feeds save position
|
||||
|
||||
} else */if (feed->chatsListTimeId() != 0) {
|
||||
return ParseDateTime(feed->chatsListTimeId()).date();
|
||||
} else */if (feed->chatListTimeId() != 0) {
|
||||
return ParseDateTime(feed->chatListTimeId()).date();
|
||||
}
|
||||
}
|
||||
return QDate::currentDate();
|
||||
@@ -424,12 +424,12 @@ void Controller::showJumpToDate(Dialogs::Key chat, QDate requestedDate) {
|
||||
if (const auto channel = history->peer->migrateTo()) {
|
||||
history = App::historyLoaded(channel);
|
||||
}
|
||||
if (history && history->chatsListTimeId() != 0) {
|
||||
return ParseDateTime(history->chatsListTimeId()).date();
|
||||
if (history && history->chatListTimeId() != 0) {
|
||||
return ParseDateTime(history->chatListTimeId()).date();
|
||||
}
|
||||
} else if (const auto feed = chat.feed()) {
|
||||
if (feed->chatsListTimeId() != 0) {
|
||||
return ParseDateTime(feed->chatsListTimeId()).date();
|
||||
if (feed->chatListTimeId() != 0) {
|
||||
return ParseDateTime(feed->chatListTimeId()).date();
|
||||
}
|
||||
}
|
||||
return QDate::currentDate();
|
||||
|
||||
Reference in New Issue
Block a user