formatMessageTitle

abstract fun formatMessageTitle(searchResultItem: ItemState.SearchResultItemState, currentUser: User?): AnnotatedString

Generates a title text for the given search result item.

Parameters

searchResultItem

The search result item whose data is used to generate the preview text.

currentUser

The currently logged in user.