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

Hide video button if the call doesn't support video.

This commit is contained in:
John Preston
2021-05-26 14:27:48 +04:00
parent 7b6b32db74
commit c6f44e7928
6 changed files with 67 additions and 54 deletions

View File

@@ -90,6 +90,12 @@ public:
[[nodiscard]] rpl::producer<bool> scheduleStartSubscribedValue() const {
return _scheduleStartSubscribed.value();
}
[[nodiscard]] bool canStartVideo() const {
return _canStartVideo.current();
}
[[nodiscard]] rpl::producer<bool> canStartVideoValue() const {
return _canStartVideo.value();
}
void setPeer(not_null<PeerData*> peer);
@@ -205,6 +211,7 @@ private:
rpl::variable<TimeId> _recordStartDate = 0;
rpl::variable<TimeId> _scheduleDate = 0;
rpl::variable<bool> _scheduleStartSubscribed = false;
rpl::variable<bool> _canStartVideo = false;
base::flat_map<uint32, LastSpokeTimes> _unknownSpokenSsrcs;
base::flat_map<PeerId, LastSpokeTimes> _unknownSpokenPeerIds;