opt: notify cm

This commit is contained in:
Kingtous
2023-02-07 17:09:36 +08:00
parent cd6cdbff8f
commit 66aaf243cf
4 changed files with 15 additions and 7 deletions

View File

@@ -587,6 +587,12 @@ class ServerModel with ChangeNotifier {
if (index != -1) {
_clients[index].inVoiceCall = client.inVoiceCall;
_clients[index].incomingVoiceCall = client.incomingVoiceCall;
if (client.incomingVoiceCall) {
// Has incoming phone call, let's set the window on top.
Future.delayed(Duration.zero, () {
window_on_top(null);
});
}
notifyListeners();
}
} catch (e) {