Close call notifications when the call has been joined by the user, or the call has ended#4672
Conversation
5db3266 to
aae9e67
Compare
Codecov Report
@@ Coverage Diff @@
## master #4672 +/- ##
==========================================
- Coverage 56.42% 56.42% -0.01%
==========================================
Files 138 138
Lines 17069 17071 +2
==========================================
Hits 9632 9632
- Misses 7437 7439 +2
|
2c99bb2 to
79900a1
Compare
mgallien
left a comment
There was a problem hiding this comment.
please squash commits and I then approve (according to our review procedure)
this time I do not forget
|
/backport to stable-3.5 |
…r the call has ended Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
79900a1 to
a504dbf
Compare
|
SonarCloud Quality Gate failed. |
|
AppImage file: Nextcloud-PR-4672-a504dbf9653041f1c5bf54237d380e10542044e8-x86_64.AppImage |
| _notificationTimer.setInterval(60 * 1000); | ||
| connect(&_notificationTimer, &QTimer::timeout, this, &CallStateChecker::slotNotificationTimerElapsed); | ||
|
|
||
| _statusCheckTimer.setInterval(2 * 1000); |
There was a problem hiding this comment.
Since this basically DDoSes the server, you might use 5 secs as well like the mobile clients do?
https://github.com/nextcloud/talk-ios/blob/529bdc88341518569a7a470b6ca7a535d6e70cdf/NextcloudTalk/CallKitManager.m#L44
But also in case the user joined, you should receive a notify_push about the call notification being deleted.
Listening to that and then removing also the popup+sound would have been good enough from my POV, but now you made the effort already so it's okay to keep.
There was a problem hiding this comment.
Apologies @nickvergessen I misread the 5 as a 2 and it stuck 🤦♂️ -- will increase to 5
Will work on the notify_push next
|
/backport to stable-3.5 |
|
The backport to stable-3.5 failed. Please do this backport manually. |








This PR adds a
CallStateCheckerthat polls the state of the call being notified, much like the Talk iOS app, and stops the call notification if:Fixes #4497