mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 15:15:13 +00:00
added some checks
This commit is contained in:
@@ -796,7 +796,7 @@ void DialogsInner::dialogsReceived(const QVector<MTPDialog> &added) {
|
||||
history->peer->asChannel()->ptsReceived(d.vpts.v);
|
||||
if (!history->peer->asChannel()->amCreator()) {
|
||||
if (HistoryItem *top = App::histItemById(history->channelId(), d.vtop_important_message.v)) {
|
||||
if (top->date <= date(history->peer->asChannel()->date)) {
|
||||
if (top->date <= date(history->peer->asChannel()->date) && App::api()) {
|
||||
App::api()->requestSelfParticipant(history->peer->asChannel());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user