2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-17 14:36:45 +00:00

Fixed updating of parent id for file click handlers.

Fixed #16447.
This commit is contained in:
23rd
2021-06-18 07:22:47 +03:00
parent 3fd772ce17
commit 6c56fad180
10 changed files with 66 additions and 57 deletions

View File

@@ -74,13 +74,14 @@ class DocumentOpenClickHandler : public DocumentClickHandler {
public:
DocumentOpenClickHandler(
not_null<DocumentData*> document,
Fn<void()> &&callback);
Fn<void(FullMsgId)> &&callback,
FullMsgId context = FullMsgId());
protected:
void onClickImpl() const override;
private:
Fn<void()> _handler;
const Fn<void(FullMsgId)> _handler;
};
@@ -148,13 +149,16 @@ private:
class PhotoOpenClickHandler : public PhotoClickHandler {
public:
PhotoOpenClickHandler(not_null<PhotoData*> photo, Fn<void()> &&callback);
PhotoOpenClickHandler(
not_null<PhotoData*> photo,
Fn<void(FullMsgId)> &&callback,
FullMsgId context = FullMsgId());
protected:
void onClickImpl() const override;
private:
Fn<void()> _handler;
const Fn<void(FullMsgId)> _handler;
};