Messaging UI - Chat List Configuration

The chat list is the main screen of most messaging apps. It shows the user’s one-to-one and group chats, each with its picture, the last message, the time and the number of unread messages. mesibo lets the app set its title, where the search field is, which filters are shown above the chats, whether chats can be archived, and what a swipe on a chat does.

These options are in the userList group, and the contact lists (new chat, forward, group members) in the contacts group.

OptionDescription
userList.titleThe title of the chat list. Empty: the app name
userList.searchModeWhere the search field is, see Search
userList.enableFilters, userList.filtersThe filters above the chats, see Filters
userList.enableArchiveArchived chats
userList.unarchiveOnNewMessageA new message moves an archived chat back to the chat list
userList.enableSwipeActionsSwiping a chat, see Swipe actions
userList.showDraftsA chat with an unsent message shows Draft: and the text
userList.showOnlineIndicatorA green dot on the picture of a user who is online
userList.enableProfilePopupA tap on a picture opens the profile popup
contacts.enableEnterAddressA row in the contacts list to start a chat with a phone number or address

The colors of the chat list are on the Themes and Colors page.

userList.searchMode sets where the search field is:

ModeAndroidiOSJSONDescription
Button (default)MesiboUI.SEARCH_BUTTONMESIBO_SEARCH_BUTTON"button"A search button in the toolbar opens the search field
TopMesiboUI.SEARCH_TOPMESIBO_SEARCH_TOP"top"The search field is always shown, under the title
SystemMesiboUI.SEARCH_SYSTEMMESIBO_SEARCH_SYSTEM"system"The platform places it. On iOS 26 and later on iPhone, at the bottom. On Android, the same as Button
NoneMesiboUI.SEARCH_NONEMESIBO_SEARCH_NONE"none"No search

The search button is the rightmost button of the toolbar. When there is no room, it moves into the More menu.

Filters

userList.enableFilters shows a row of filters above the chats. userList.filters sets which filters are shown, their titles, and their order. The first filter is selected when the list opens.

FilterAndroidiOSJSONShows
AllCHATFILTER_ALLMESIBO_CHATFILTER_ALL"all"every chat
UnreadCHATFILTER_UNREADMESIBO_CHATFILTER_UNREAD"unread"chats with unread messages
FavoritesCHATFILTER_FAVORITESMESIBO_CHATFILTER_FAVORITES"favorites"favorite chats
GroupsCHATFILTER_GROUPSMESIBO_CHATFILTER_GROUPS"groups"group chats
OnlineCHATFILTER_ONLINEMESIBO_CHATFILTER_ONLINE"online"users who are online

All five are shown by default. filters is a list of MesiboUiOption: the filter in value, and its title in title. A filter left out of the list is hidden.

config.userList.filters = new MesiboUiOption[]{
        new MesiboUiOption(MesiboUI.CHATFILTER_ALL, "All"),
        new MesiboUiOption(MesiboUI.CHATFILTER_UNREAD, "Unread"),
        new MesiboUiOption(MesiboUI.CHATFILTER_GROUPS, "Groups")};
config.userList.filters = arrayOf(
        MesiboUiOption(MesiboUI.CHATFILTER_ALL, "All"),
        MesiboUiOption(MesiboUI.CHATFILTER_UNREAD, "Unread"),
        MesiboUiOption(MesiboUI.CHATFILTER_GROUPS, "Groups"))
config.userList.filters = [
    MesiboUiOption(Int(MESIBO_CHATFILTER_ALL), title: "All"),
    MesiboUiOption(Int(MESIBO_CHATFILTER_UNREAD), title: "Unread"),
    MesiboUiOption(Int(MESIBO_CHATFILTER_GROUPS), title: "Groups")]
config.userList.filters = @[[MesiboUiOption option:MESIBO_CHATFILTER_ALL title:@"All"],
                            [MesiboUiOption option:MESIBO_CHATFILTER_UNREAD title:@"Unread"],
                            [MesiboUiOption option:MESIBO_CHATFILTER_GROUPS title:@"Groups"]];
{"userList": {"filters": [{"value": "all", "title": "All"},
                          {"value": "unread", "title": "Unread"},
                          {"value": "groups", "title": "Groups"}]}}

Swipe actions

A chat in the chat list can be swiped:

SwipeAndroidiOS
LeftArchive, or Unarchive in the archived chats. When userList.enableArchive is off: Delete, after a confirmationShows the Delete, Mute and Archive buttons
RightMark as read, or as unreadShows the Read or Unread button

On Android, a full swipe does the action. On iOS, a swipe shows buttons.

userList.enableSwipeActions set to false (NO) turns swiping off. The same actions stay in the bar shown on a long press.