mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix a crash in custom notifications.
This commit is contained in:
@@ -551,7 +551,7 @@ Notification::Notification(
|
||||
auto position = computePosition(st::notifyMinHeight);
|
||||
updateGeometry(position.x(), position.y(), st::notifyWidth, st::notifyMinHeight);
|
||||
|
||||
_userpicLoaded = (_userpicView->image() != nullptr);
|
||||
_userpicLoaded = !_userpicView || (_userpicView->image() != nullptr);
|
||||
updateNotifyDisplay();
|
||||
|
||||
_hideTimer.setSingleShot(true);
|
||||
|
||||
Reference in New Issue
Block a user