Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,28 @@
public suspend fun connect(): Result<Long>

/**
* Clears the internal user state, removes push notification devices and clears the call state.
* Clears the locally stored push device token only. Does not call the
* server `DELETE /devices` endpoint, disconnect the coordinator socket, or
* clear any in-memory user / call state. The name and historical KDoc
* misrepresented this behavior; the method is kept for source compatibility
* but should not be used.
*
* For a full teardown, call [deleteDevice] (if a server-side device row
* should be removed) and then [StreamVideo.removeClient], which triggers
* [cleanup] and uninstalls the singleton.
*/
@Deprecated(
message = "logOut() only clears the local push device cache; it does not log the user " +
"out, remove the server-side device row, or disconnect the socket. Use " +
"StreamVideo.removeClient() for a full teardown (combine with deleteDevice() " +
"first if the server-side device row must be removed).",
replaceWith = ReplaceWith(
expression = "StreamVideo.removeClient()",
imports = ["io.getstream.video.android.core.StreamVideo"],
),
level = DeprecationLevel.WARNING,
)
public fun logOut()

Check warning on line 177 in stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/StreamVideo.kt

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Do not forget to remove this deprecated code someday.

See more on https://sonarcloud.io/project/issues?id=GetStream_stream-video-android&issues=AZ6nNLzSsym7uE9xJ_oS&open=AZ6nNLzSsym7uE9xJ_oS&pullRequest=1709

public companion object {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,15 @@
/**
* @see StreamVideo.logOut
*/
@Deprecated(
message = "Kept for source compatibility; see StreamVideo.logOut for migration guidance.",
replaceWith = ReplaceWith(
expression = "StreamVideo.removeClient()",
imports = ["io.getstream.video.android.core.StreamVideo"],
),
level = DeprecationLevel.WARNING,
)
override fun logOut() {

Check warning on line 1212 in stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/StreamVideoClient.kt

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Do not forget to remove this deprecated code someday.

See more on https://sonarcloud.io/project/issues?id=GetStream_stream-video-android&issues=AZ6nNL21sym7uE9xJ_oT&open=AZ6nNL21sym7uE9xJ_oT&pullRequest=1709
scope.launch(
CoroutineName("logOut"),
) { streamNotificationManager.deviceTokenStorage.clear() }
Expand Down
Loading