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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user