mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-08 04:45:31 +00:00
calls-ringer: Don't restart when feedback got ended explicitly
If a user e.g. lowers the gobal feedback level we don't want to
retrigger the events.
Without this calls assumes events ended naturally and restarts the
ringing without any events. As that is never ended even subsequent calls
don't receive any ringing.
(cherry picked from commit b5af7f5e7d
)
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/736>
This commit is contained in:
parent
43ce0e9ba0
commit
dcb70a9b77
1 changed files with 2 additions and 1 deletions
|
@ -194,7 +194,8 @@ on_feedback_ended (LfbEvent *event,
|
|||
/* When no feedback is available on the system (e.g. no vibration motor or LEDs)
|
||||
* it will get ended immediately on triggering. Changing the target state will
|
||||
* break loop that would otherwise occur. */
|
||||
if (lfb_event_get_end_reason (event) == LFB_EVENT_END_REASON_NOT_FOUND)
|
||||
if (lfb_event_get_end_reason (event) == LFB_EVENT_END_REASON_NOT_FOUND ||
|
||||
lfb_event_get_end_reason (event) == LFB_EVENT_END_REASON_EXPLICIT)
|
||||
self->target_state = CALLS_RING_STATE_INACTIVE;
|
||||
|
||||
set_ring_state (self, CALLS_RING_STATE_INACTIVE);
|
||||
|
|
Loading…
Reference in a new issue