2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Show recording indicator.

This commit is contained in:
John Preston
2021-03-09 17:24:32 +04:00
parent 50265afe93
commit 7edc91e29e
7 changed files with 146 additions and 80 deletions

View File

@@ -54,7 +54,13 @@ public:
_title = title;
}
[[nodiscard]] TimeId recordStartDate() const {
return _recordStartDate;
return _recordStartDate.current();
}
[[nodiscard]] rpl::producer<TimeId> recordStartDateValue() const {
return _recordStartDate.value();
}
[[nodiscard]] rpl::producer<TimeId> recordStartDateChanges() const {
return _recordStartDate.changes();
}
void setPeer(not_null<PeerData*> peer);
@@ -130,7 +136,7 @@ private:
base::Timer _speakingByActiveFinishTimer;
QString _nextOffset;
rpl::variable<int> _fullCount = 0;
TimeId _recordStartDate = 0;
rpl::variable<TimeId> _recordStartDate = 0;
base::flat_map<uint32, LastSpokeTimes> _unknownSpokenSsrcs;
base::flat_map<PeerId, LastSpokeTimes> _unknownSpokenPeerIds;