2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

media overview almost done

This commit is contained in:
John Preston
2014-08-15 15:19:32 +04:00
parent 7f976fa251
commit a2179c77ba
28 changed files with 1990 additions and 468 deletions

View File

@@ -2198,7 +2198,7 @@ void HistoryWidget::onSend() {
}
mtpRequestId HistoryWidget::onForward(const PeerId &peer, bool forwardSelected) {
if (!_list) return 0;
if (forwardSelected && !_list) return 0;
HistoryItemSet toForward;
if (forwardSelected) {
@@ -2295,6 +2295,14 @@ MsgId HistoryWidget::activeMsgId() const {
return hist ? hist->activeMsgId : (_activeHist ? _activeHist->activeMsgId : 0);
}
int32 HistoryWidget::lastWidth() const {
return width();
}
int32 HistoryWidget::lastScrollTop() const {
return _scroll.scrollTop();
}
void HistoryWidget::animShow(const QPixmap &bgAnimCache, const QPixmap &bgAnimTopBarCache, bool back) {
_bgAnimCache = bgAnimCache;
_bgAnimTopBarCache = bgAnimTopBarCache;