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

Update FullMsgId context in HistoryMedia links.

This commit is contained in:
John Preston
2017-12-18 17:13:41 +04:00
parent ddf4a36bdc
commit 546766fb13
11 changed files with 149 additions and 54 deletions

View File

@@ -309,24 +309,20 @@ private:
VoiceWaveform documentWaveformDecode(const QByteArray &encoded5bit);
QByteArray documentWaveformEncode5bit(const VoiceWaveform &waveform);
class DocumentClickHandler : public LeftButtonClickHandler {
class DocumentClickHandler : public FileClickHandler {
public:
DocumentClickHandler(
not_null<DocumentData*> document,
FullMsgId context = FullMsgId())
: _document(document)
, _context(context) {
: FileClickHandler(context)
, _document(document) {
}
not_null<DocumentData*> document() const {
return _document;
}
FullMsgId context() const {
return _context;
}
private:
not_null<DocumentData*> _document;
FullMsgId _context;
};