nextcloud-talk-android/app/src
Daniel Calviño Sánchez f84a621780
Do not store sessions not in call as old sessions
The old sessions are used to know which connections need to be ended
because they are no longer in the call. However, if a participant is no
longer in the call but there was no connection yet then there is no
connection that needs to be ended; any existing connection will be added
when looping through the connection list, and if it needs to be stopped
it will be found when substracting the sessions that are currently in
the call.

The old sessions are also used to find the new sessions in the call. Due
to an issue in how that is computed "newSessions" currently store the
sessions in the call rather than only the new sessions (this will be
addressed in a following commit). Nevertheless, in both cases any
session not in the call for which there is no connection either will not
make any difference in the computed "newSessions" (as they are mutually
exclusive, so they will never be removed from "newSessions" when
substracting the old sessions).

Due to all that it is not needed to store sessions not in call as old
sessions / sessions to end.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-10-13 15:23:54 +02:00
..
androidTest/java/com/nextcloud/talk remove unused persistence methods 2022-07-26 21:55:03 +02:00
generic add copyright + minor refactoring 2022-01-26 15:00:31 +01:00
gplay Merge pull request #2371 from nextcloud/dependabot/gradle/com.android.tools.build-gradle-7.3.0 2022-09-16 16:36:33 +02:00
main Do not store sessions not in call as old sessions 2022-10-13 15:23:54 +02:00
qa Added monochrome icon for Android 13 "Themed icons" support. 2022-09-20 16:51:28 +02:00
test Respect can publish audio & video permission 2022-09-26 12:39:15 +02:00