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

Added waiting for full data update of peer to open EditPeerInfoBox.

This commit is contained in:
23rd
2019-03-17 11:14:31 +03:00
committed by John Preston
parent cb272be805
commit 21e417433b
2 changed files with 20 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <rpl/variable.h>
#include "base/flags.h"
#include "base/observer.h"
#include "dialogs/dialogs_key.h"
class AuthSession;
@@ -137,7 +138,9 @@ private:
};
class Controller : public Navigation {
class Controller
: public Navigation
, private base::Subscriber {
public:
Controller(
not_null<AuthSession*> session,
@@ -160,6 +163,7 @@ public:
rpl::producer<Dialogs::RowDescriptor> activeChatEntryValue() const;
rpl::producer<Dialogs::Key> activeChatValue() const;
bool jumpToChatListEntry(Dialogs::RowDescriptor row);
void showEditPeerBox(PeerData *peer);
void enableGifPauseReason(GifPauseReason reason);
void disableGifPauseReason(GifPauseReason reason);
@@ -308,6 +312,8 @@ private:
Media::Player::FloatDelegate *_defaultFloatPlayerDelegate = nullptr;
Media::Player::FloatDelegate *_replacementFloatPlayerDelegate = nullptr;
PeerData *_showEditPeer = nullptr;
rpl::lifetime _lifetime;
};