mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 08:55:59 +00:00
Fix repeated subscriptions on layer wrapping type change.
This commit is contained in:
@@ -244,7 +244,7 @@ int LayerWidget::MinimalSupportedWidth() {
|
||||
}
|
||||
|
||||
int LayerWidget::resizeGetHeight(int newWidth) {
|
||||
if (!parentWidget() || !_content) {
|
||||
if (!parentWidget() || !_content || !newWidth) {
|
||||
return 0;
|
||||
}
|
||||
constexpr auto kMaxAttempts = 16;
|
||||
|
Reference in New Issue
Block a user