mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
fixed pinned bar delayed message load updating
This commit is contained in:
parent
bf5a5fd529
commit
4c13377d1e
1 changed files with 1 additions and 0 deletions
|
@ -6818,6 +6818,7 @@ void HistoryWidget::updatePinnedBar(bool force) {
|
||||||
}
|
}
|
||||||
if (_pinnedBar->msg) {
|
if (_pinnedBar->msg) {
|
||||||
_pinnedBar->text.setText(st::msgFont, _pinnedBar->msg->inDialogsText(), _textDlgOptions);
|
_pinnedBar->text.setText(st::msgFont, _pinnedBar->msg->inDialogsText(), _textDlgOptions);
|
||||||
|
update();
|
||||||
} else if (force) {
|
} else if (force) {
|
||||||
if (_peer && _peer->isMegagroup()) {
|
if (_peer && _peer->isMegagroup()) {
|
||||||
_peer->asChannel()->mgInfo->pinnedMsgId = 0;
|
_peer->asChannel()->mgInfo->pinnedMsgId = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue