mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Fix one more crash in HistoryWidget.
This commit is contained in:
@@ -3983,7 +3983,7 @@ void HistoryWidget::updateFieldPlaceholder() {
|
|||||||
auto text = _inlineBot->botInfo->inlinePlaceholder.mid(1);
|
auto text = _inlineBot->botInfo->inlinePlaceholder.mid(1);
|
||||||
_field->setPlaceholder([text] { return text; }, _inlineBot->username.size() + 2);
|
_field->setPlaceholder([text] { return text; }, _inlineBot->username.size() + 2);
|
||||||
} else {
|
} else {
|
||||||
const auto peer = _history->peer;
|
const auto peer = _history ? _history->peer : nullptr;
|
||||||
_field->setPlaceholder(langFactory(
|
_field->setPlaceholder(langFactory(
|
||||||
(peer && peer->isChannel() && !peer->isMegagroup())
|
(peer && peer->isChannel() && !peer->isMegagroup())
|
||||||
? (peer->notifySilentPosts()
|
? (peer->notifySilentPosts()
|
||||||
|
Reference in New Issue
Block a user