mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 03:42:56 +00:00
Allow forwarding polls to monoforums.
This commit is contained in:
@@ -267,11 +267,18 @@ int MessageView::countWidth() const {
|
||||
auto result = 0;
|
||||
if (!_senderCache.isEmpty()) {
|
||||
result += _senderCache.maxWidth();
|
||||
if (!_imagesCache.empty()) {
|
||||
if (!_imagesCache.empty() && !_leftIcon) {
|
||||
result += st::dialogsMiniPreviewSkip
|
||||
+ st::dialogsMiniPreviewRight;
|
||||
}
|
||||
}
|
||||
if (_leftIcon) {
|
||||
const auto w = _leftIcon->icon.icon.width();
|
||||
result += w
|
||||
+ (_imagesCache.empty()
|
||||
? _leftIcon->skipText
|
||||
: _leftIcon->skipMedia);
|
||||
}
|
||||
if (!_imagesCache.empty()) {
|
||||
result += (_imagesCache.size()
|
||||
* (st::dialogsMiniPreview + st::dialogsMiniPreviewSkip))
|
||||
|
||||
Reference in New Issue
Block a user