Skip to content

Conversation

r10s
Copy link
Contributor

@r10s r10s commented Sep 5, 2025

  • sync declined calls from callee to caller, as usual in all larger messengers
  • introduce the call states "Missed call", "Declined call" and "Cancelled all" ("Ended call" is gone)
  • allow calling end_call()/accept_call() for already ended/accepted calls, in practise, handling all cornercases is tricky in UI - and the state needs anyways to be tracked.
  • track and show the call duration

the duration calculation depends on local time, but it is displayed only coarse and is not needed for any state. this can be improved as needed, timestamps of the corresponding messages are probably better at some point. or ending device sends its view of the time around. but for the first throw, it seems good enough

if we finally want that set of states, it can be exposed to a json-info in a subsequent call, so that the UI can render it more nicely. fallback strings as follows will stay for now to make adaption in other UI easy, and for debugging:

IMG_0154

successor of #6650

@r10s r10s force-pushed the r10s/refine-call-states branch 9 times, most recently from 7c85bea to 79b7b34 Compare September 6, 2025 21:45
- sync declined calls from callee to caller, as usualy in all larger messengers
- introduce the call states "Missed call", "Declined call" and "Cancelled all"
- allow calling end_call()/accept_call() for already ended/accepted calls,
  in practise, handling all cornercases is tricky in UI -
  and the state needs anyways to be tracked.
@r10s r10s force-pushed the r10s/refine-call-states branch from 79b7b34 to 0677d70 Compare September 6, 2025 21:50
@r10s r10s force-pushed the r10s/refine-call-states branch from 8cf9295 to 7d42e6b Compare September 6, 2025 22:53
@r10s r10s requested review from link2xt and adbenitez September 6, 2025 23:03
@r10s r10s marked this pull request as ready for review September 6, 2025 23:04
@r10s r10s added this to Calls Sep 8, 2025
@r10s r10s moved this to In Progress in Calls Sep 8, 2025
@r10s r10s changed the title refine call states feat: refine call states Sep 8, 2025
@r10s r10s merged commit ab8aedf into main Sep 8, 2025
29 checks passed
@r10s r10s deleted the r10s/refine-call-states branch September 8, 2025 13:48
@github-project-automation github-project-automation bot moved this from In Progress to Done in Calls Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants