Commit 56e8e46
authored
feat(core): add CallType.AudioRoom for the audio_room server call type (#1685)
Adds CallType.AudioRoom (name = "audio_room") to mirror the same-named call
type used by React and iOS. Overrides sortPreset to LivestreamOrAudioRoom so
group audio chats self-sort with role-aware ordering out of the box.
Distinct from CallType.AudioCall (Android-specific 1:1 voice call). AudioCall
keeps SortPreset.Default — role-based sort doesn't apply to a two-participant
call.
Updates CallType.fromName to include AudioRoom in the lookup list.
Tests: extends CallTypeSortPresetTest with assertions for AudioRoom.sortPreset
and the fromName("audio_room") resolution path.
apiCheck vs develop: additive only.1 parent 3c79cf6 commit 56e8e46
3 files changed
Lines changed: 37 additions & 4 deletions
File tree
- stream-video-android-core
- api
- src
- main/kotlin/io/getstream/video/android/core/call
- test/kotlin/io/getstream/video/android/core/sorting
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9648 | 9648 | | |
9649 | 9649 | | |
9650 | 9650 | | |
| 9651 | + | |
| 9652 | + | |
| 9653 | + | |
| 9654 | + | |
| 9655 | + | |
9651 | 9656 | | |
9652 | 9657 | | |
9653 | 9658 | | |
| |||
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
33 | 42 | | |
34 | 43 | | |
35 | 44 | | |
| |||
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
46 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
47 | 62 | | |
48 | 63 | | |
49 | 64 | | |
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
40 | 47 | | |
41 | 48 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
48 | 61 | | |
49 | 62 | | |
50 | 63 | | |
| |||
0 commit comments