2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Use plain HistoryItem in channel admin events log.

Instead of using a complex AdminLog::Item use just HistoryItem*.
This commit is contained in:
John Preston
2017-06-22 02:54:38 +03:00
parent e39b95175b
commit 5c87b42135
14 changed files with 313 additions and 319 deletions

View File

@@ -63,6 +63,16 @@ public:
base::Observable<gsl::not_null<const HistoryItem*>> &repaintLogEntry() {
return _repaintLogEntry;
}
base::Observable<void> &pendingHistoryResize() {
return _pendingHistoryResize;
}
struct ItemVisibilityQuery {
gsl::not_null<HistoryItem*> item;
gsl::not_null<bool*> isVisible;
};
base::Observable<ItemVisibilityQuery> &queryItemVisibility() {
return _queryItemVisibility;
}
void copyFrom(const AuthSessionData &other) {
_variables = other._variables;
@@ -139,6 +149,8 @@ private:
base::Observable<void> _savedGifsUpdated;
base::Observable<gsl::not_null<History*>> _historyCleared;
base::Observable<gsl::not_null<const HistoryItem*>> _repaintLogEntry;
base::Observable<void> _pendingHistoryResize;
base::Observable<ItemVisibilityQuery> _queryItemVisibility;
Variables _variables;
TimeMs _lastTimeVideoPlayedAt = 0;