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

Support ctrl+m/ctrl+w in voice chat panel.

This commit is contained in:
John Preston
2020-12-22 20:09:32 +04:00
parent c80da25450
commit ae6decf70b
7 changed files with 50 additions and 6 deletions

View File

@@ -486,6 +486,25 @@ bool Instance::activateCurrentCall() {
return false;
}
bool Instance::minimizeCurrentActiveCall() {
if (inCall() && _currentCallPanel->isActive()) {
_currentCallPanel->minimize();
return true;
} else if (inGroupCall() && _currentGroupCallPanel->isActive()) {
_currentGroupCallPanel->minimize();
return true;
}
return false;
}
bool Instance::closeCurrentActiveCall() {
if (inGroupCall() && _currentGroupCallPanel->isActive()) {
_currentGroupCallPanel->close();
return true;
}
return false;
}
Call *Instance::currentCall() const {
return _currentCall.get();
}