From f4dd596dfcd92f0ed0a10761984390047b142b94 Mon Sep 17 00:00:00 2001
From: Taras Smakula <tarassmakula@gmail.com>
Date: Wed, 14 Dec 2022 13:17:31 +0200
Subject: [PATCH] Make Credentials session id public

---
 .../java/org/matrix/android/sdk/api/auth/data/Credentials.kt    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/auth/data/Credentials.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/auth/data/Credentials.kt
index e3728753..c6a9cadf 100644
--- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/auth/data/Credentials.kt
+++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/auth/data/Credentials.kt
@@ -58,6 +58,6 @@ data class Credentials(
         @Json(name = "well_known") val discoveryInformation: DiscoveryInformation? = null
 )
 
-internal fun Credentials.sessionId(): String {
+fun Credentials.sessionId(): String {
     return (if (deviceId.isNullOrBlank()) userId else "$userId|$deviceId").md5()
 }
-- 
GitLab