Recent Chat List
#
Header ComponentThe headerComponent includes a Recent chat title, a back button that takes the user to the previous view. Each property corresponds to the module elements in the navigation bar of MFUIRecentChatViewController
.
The following table shows the parameters of the configure()
method of
the headerComponent.
Parameter name | Type |
---|---|
delegate | MFUIRecentChatListModuleHeaderDelegate |
theme | MFChannelListTheme |
#
List ComponentThe listComponent shows a list of all recent chat that the current user has. The following table shows the parameters of the configure()
method of the listComponent.
Parameter name | Type |
---|---|
delegate | MFUIRecentChatListModuleListDelegate |
datasource | MFUIRecentChatListModuleListDataSource |
theme | MFChannelListTheme |
#
View ModelThe MFUIRecentChatListViewController class uses a view model that is a type of the MFUIRecentChatListViewModel class. The view model is created in the initializer of the view controller through the createViewModel(recentChatList)
method. When the view model object is created, it retrieves message list data from Chat SDK to the view controller and updates the view through the ChatListViewModel(_:didChangeChatList:needsToReload)
event.
The following table shows the parameters list of the createViewModel method
Parameter name | Type |
---|---|
recentChatList | RecentChat |