mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-25 08:44:38 +00:00
fixed pinned message display if input field is hidden, fixed pinned message remove, removed copy post link context menu item from public supergroup messages
This commit is contained in:
parent
4c13377d1e
commit
6792f9c77b
@ -1097,7 +1097,7 @@ public:
|
||||
bool canEdit(const QDateTime &cur) const;
|
||||
|
||||
bool hasDirectLink() const {
|
||||
return id > 0 && _history->peer->isChannel() && _history->peer->asChannel()->isPublic();
|
||||
return id > 0 && _history->peer->isChannel() && _history->peer->asChannel()->isPublic() && !_history->peer->isMegagroup();
|
||||
}
|
||||
QString directLink() const {
|
||||
return hasDirectLink() ? qsl("https://telegram.me/") + _history->peer->asChannel()->username + '/' + QString::number(id) : QString();
|
||||
|
@ -6876,6 +6876,7 @@ bool HistoryWidget::pinnedMsgVisibilityUpdated() {
|
||||
_pinnedBar = nullptr;
|
||||
result = true;
|
||||
_scroll.scrollToY(_scroll.scrollTop() - st::replyHeight);
|
||||
resizeEvent(0);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@ -7889,9 +7890,9 @@ void HistoryWidget::paintEvent(QPaintEvent *e) {
|
||||
drawRecordButton(p);
|
||||
if (_recording) drawRecording(p);
|
||||
}
|
||||
if (_pinnedBar) {
|
||||
drawPinnedBar(p);
|
||||
}
|
||||
}
|
||||
if (_pinnedBar && !_pinnedBar->cancel.isHidden()) {
|
||||
drawPinnedBar(p);
|
||||
}
|
||||
if (_scroll.isHidden()) {
|
||||
QPoint dogPos((width() - st::msgDogImg.pxWidth()) / 2, ((height() - _field.height() - 2 * st::sendPadding - st::msgDogImg.pxHeight()) * 4) / 9);
|
||||
|
Loading…
Reference in New Issue
Block a user