RoomTitleResolver typedef

RoomTitleResolver = String? Function(RoomTitleContext context)

Resolves the title shown for a room across the SDK (surfaced via RoomListItem.displayName and any consumer reading it). Returning null opts out and lets the SDK apply its default: for DMs the other member's displayName (falling back to their id); for groups the server-provided room.name. Use this hook to inject app-specific naming (e.g. nickname books, role-based titles) without forking the SDK or mutating room state.

Implementation

typedef RoomTitleResolver = String? Function(RoomTitleContext context);