fix(widget): Improve MiddleEllipsisText Unicode and surrogate handling

This commit is contained in:
cogwheel
2025-12-20 22:31:18 +05:30
parent cc97b7a886
commit 7adcf0d45c
2 changed files with 71 additions and 23 deletions

View File

@@ -343,20 +343,17 @@ class VoiceCallService {
// Set up periodic keep-alive to refresh wake lock (every 5 minutes)
_keepAliveTimer?.cancel();
_keepAliveTimer = Timer.periodic(
const Duration(minutes: 5),
(_) async {
final success = await BackgroundStreamingHandler.instance.keepAlive();
if (!success) {
// Keep-alive failed but don't stop the call - service may still work
developer.log(
'Voice call keep-alive failed',
name: 'VoiceCallService',
level: 900, // WARNING
);
}
},
);
_keepAliveTimer = Timer.periodic(const Duration(minutes: 5), (_) async {
final success = await BackgroundStreamingHandler.instance.keepAlive();
if (!success) {
// Keep-alive failed but don't stop the call - service may still work
developer.log(
'Voice call keep-alive failed',
name: 'VoiceCallService',
level: 900, // WARNING
);
}
});
// Set up socket event listener for assistant responses
_socketSubscription = _socketService.addChatEventHandler(