RoomDisplayNameFallbackProvider

interface RoomDisplayNameFallbackProvider

This interface exists to let the implementation provide localized room display name fallback. The methods can be called when the room has no name, i.e. its m.room.name state event does not exist or the name in it is an empty String. It allows the SDK to store the room name fallback into the local storage and so let the client do queries on the room name. Limitation: if the locale of the device changes, the methods will not be called again.

Functions

Link copied to clipboard
abstract fun excludedUserIds(roomId: String): List<String>

Return the list of user ids to ignore when computing the room display name.

Link copied to clipboard
abstract fun getNameFor1member(name: String): String
Link copied to clipboard
abstract fun getNameFor2members(name1: String, name2: String): String
Link copied to clipboard
abstract fun getNameFor3members(    name1: String,     name2: String,     name3: String): String
Link copied to clipboard
abstract fun getNameFor4members(    name1: String,     name2: String,     name3: String,     name4: String): String
Link copied to clipboard
abstract fun getNameFor4membersAndMore(    name1: String,     name2: String,     name3: String,     remainingCount: Int): String
Link copied to clipboard
abstract fun getNameForEmptyRoom(isDirect: Boolean, leftMemberNames: List<String>): String
Link copied to clipboard
abstract fun getNameForRoomInvite(): String