mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-11 11:47:09 +02:00
Fix a crash in some chat switchings.
This commit is contained in:
parent
b0d7c3e9b1
commit
cc4a5f30b6
1 changed files with 3 additions and 1 deletions
|
@ -5194,7 +5194,9 @@ void HistoryWidget::updateSendButtonType() {
|
|||
: 0;
|
||||
}();
|
||||
const auto perMessage = _peer ? _peer->starsPerMessageChecked() : 0;
|
||||
const auto messages = _voiceRecordBar->isListenState()
|
||||
const auto messages = !_peer
|
||||
? 0
|
||||
: _voiceRecordBar->isListenState()
|
||||
? 1
|
||||
: ComputeSendingMessagesCount(_history, {
|
||||
.forward = &_forwardPanel->items(),
|
||||
|
|
Loading…
Add table
Reference in a new issue