mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Improve group call service messages.
This commit is contained in:
@@ -800,6 +800,14 @@ void Session::unregisterGroupCall(not_null<GroupCall*> call) {
|
||||
_groupCalls.remove(call->id());
|
||||
}
|
||||
|
||||
rpl::producer<Session::GroupCallDiscard> Session::groupCallDiscards() const {
|
||||
return _groupCallDiscarded.events();
|
||||
}
|
||||
|
||||
void Session::groupCallDiscarded(uint64 id, int duration) {
|
||||
_groupCallDiscarded.fire({ id, duration });
|
||||
}
|
||||
|
||||
GroupCall *Session::groupCall(uint64 callId) const {
|
||||
const auto i = _groupCalls.find(callId);
|
||||
return (i != end(_groupCalls)) ? i->second.get() : nullptr;
|
||||
|
Reference in New Issue
Block a user