Skip to content

Commit 8d668cc

Browse files
committed
avoiding redundant session id filesDir opening, this provision is called multiple times each time we open a room
1 parent 54daee2 commit 8d668cc

File tree

1 file changed

+1
-0
lines changed
  • matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session

1 file changed

+1
-0
lines changed

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/SessionModule.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ internal abstract class SessionModule {
163163
@JvmStatic
164164
@Provides
165165
@SessionFilesDirectory
166+
@SessionScope
166167
fun providesFilesDir(@UserMd5 userMd5: String,
167168
@SessionId sessionId: String,
168169
context: Context): File {

0 commit comments

Comments
 (0)