mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
injecting the room name provider as we're within hilts scope
This commit is contained in:
parent
c62b9949f2
commit
674aea97a8
@ -110,10 +110,10 @@ object VectorStaticModule {
|
||||
}
|
||||
|
||||
@Provides
|
||||
fun providesMatrixConfiguration(context: Context): MatrixConfiguration {
|
||||
fun providesMatrixConfiguration(vectorRoomDisplayNameFallbackProvider: VectorRoomDisplayNameFallbackProvider): MatrixConfiguration {
|
||||
return MatrixConfiguration(
|
||||
applicationFlavor = BuildConfig.FLAVOR_DESCRIPTION,
|
||||
roomDisplayNameFallbackProvider = VectorRoomDisplayNameFallbackProvider(context)
|
||||
roomDisplayNameFallbackProvider = vectorRoomDisplayNameFallbackProvider
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -19,8 +19,9 @@ package im.vector.app.features.room
|
||||
import android.content.Context
|
||||
import im.vector.app.R
|
||||
import org.matrix.android.sdk.api.RoomDisplayNameFallbackProvider
|
||||
import javax.inject.Inject
|
||||
|
||||
class VectorRoomDisplayNameFallbackProvider(
|
||||
class VectorRoomDisplayNameFallbackProvider @Inject constructor(
|
||||
private val context: Context
|
||||
) : RoomDisplayNameFallbackProvider {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user