Messaging UI Settings - Texts, Localization, Colors and Features

MesiboUiConfig holds every setting of the messaging UI: texts, colors, images, and which features are on. The settings are in groups, one group per screen or part of the UI. The names are the same on Android, iOS and Flutter.

The settings of each part of the UI are described on these pages:

PageSettings
Themes and Colorscolors, light and dark themes, text size, wallpaper, customizations, the Customize screen
Chat Listtitle, search, filters, archived chats, swipe actions
Chat Screenmessage features, attachments, photo editor, picture size, message options, disappearing messages, message status, message info, photo and video viewer
Profilesthe profile screen, profile photos, profile media
Privacy and Securityend-to-end encryption screens, sensitive messages
Configuration as JSONthe settings as JSON: applying, exporting, the JSON Schema
Setting Namesthe new name of every setting of earlier versions

Setting the configuration

The app sets the configuration in two ways:

  1. In code, in MesiboUI_onConfig of the app’s MesiboUIListener. mesibo calls it each time it makes a new configuration, for example when the theme changes. See Light and dark theme.
  2. As a customization: a JSON of settings saved with saveCustomization, for example from the Customize screen or from the app’s server. See Customizations.
@Override
public void MesiboUI_onConfig(MesiboUiConfig config, boolean dark) {
    config.userList.title = "Chats";
    config.userList.enableFilters = false;
    config.messages.enableForward = false;
    config.profileViewer.showAddress = true;
}
override fun MesiboUI_onConfig(config: MesiboUiConfig, dark: Boolean) {
    config.userList.title = "Chats"
    config.userList.enableFilters = false
    config.messages.enableForward = false
    config.profileViewer.showAddress = true
}
func MesiboUI_onConfig(config: MesiboUiConfig, dark: Bool) {
    config.userList.title = "Chats"
    config.userList.enableFilters = false
    config.messages.enableForward = false
    config.profileViewer.showAddress = true
}
- (void)MesiboUI_onConfig:(MesiboUiConfig *)config dark:(BOOL)dark {
    config.userList.title = @"Chats";
    config.userList.enableFilters = NO;
    config.messages.enableForward = NO;
    config.profileViewer.showAddress = YES;
}
{
  "userList": {"title": "Chats", "enableFilters": false},
  "messages": {"enableForward": false},
  "profileViewer": {"showAddress": true}
}

The groups

GroupSettings of
themecolors and pictures shared by all screens: toolbar, accent color, letter avatars
commontexts used on several screens: Cancel, Today, online, typing…, You
userListthe chat list: title, search, filters, archived chats, drafts, the profile popup
contactsthe contact lists: new chat, forward, group members, Enter number
messagesthe chat screen: the actions on a message (reply, forward, edit, copy, star, keep, reactions) and their texts
messageAppearancethe look of the chat: bubbles, text size, spacing, wallpaper
attachmentsthe attach button, the camera button, the tiles of the attachment sheet
imageSendingthe size of pictures sent
messageOptionsthe message options sheet: disappear after, expiry, sensitivity
messageInfothe message info screen: when a message was delivered and read
messageStatusthe icons by the time of a message, and the texts of a message that could not be sent
voiceMessagesrecording and playing voice messages
locationsharing a location (Android only)
profileViewerthe profile screen of a user profile or a group profile
profileEditorthe editor of the user profile and of group profiles, and their photos
groupscreating and editing groups, and their members
disappearingthe disappearing messages screen
encryptionthe end-to-end encryption screens
mediaPickerpicking photos, videos and files
imageEditorthe photo editor
sensitivitysensitive messages

Each setting has a description in the IDE.

Naming

The names follow one convention, the same on Android and iOS:

NameMeaningExample
enableXA feature the user can use. Off removes it from every screenmessages.enableForward
enabledA whole group on or offattachments.enabled
showXDisplay only. Off hides information; no action is lostprofileViewer.showLastSeen
XTitleA short text: a button, a label, a title or a headingmessages.forwardTitle
XMessageA sentence: an explanation, an empty list, an erroruserList.emptySearchMessage
XHintThe placeholder of an input fielduserList.searchHint
XColorA color, 0xAARRGGBBmessageStatus.readColor
XImage, XImageResourceThe app’s own picture: a UIImage on iOS, a drawable resource on Androidattachments.buttonImage
XLevelA sensitivity threshold. 0 is offsensitivity.blockCopyLevel
maxXA limitprofileEditor.maxPhotos

A setting’s name does not repeat the group’s name: messageInfo.title, not messageInfo.messageInfoTitle.

A list of choices is a list of MesiboUiOption. Each MesiboUiOption has a value, a title, and an optional detail. Example: imageSending.sizes.

A title set to null (nil) or empty is not displayed.

Dialogs

MesiboDialogs shows the same alerts and bottom sheets as the messaging UI. The app can use it for its own dialogs, so that they look the same. MesiboDialogs.Options (MesiboDialogOptions on iOS) sets the content:

OptionDescription
title, messageThe title and the text
positiveLabel, onPositiveThe positive button and its handler. No label: common.okTitle
negativeLabel, onNegativeThe negative button and its handler. No label: no negative button
destructiveThe positive button in red
sheetA bottom sheet instead of a centered dialog
items, onSelectA list of choices instead of a message. onSelect gets the index of the tapped item
destructiveItemsThe indexes of items shown in red
MesiboDialogs.Options o = new MesiboDialogs.Options();
o.title = "Delete chats?";
o.positiveLabel = "Delete";
o.negativeLabel = MesiboUI.getConfig().common.cancelTitle;
o.destructive = true;
o.onPositive = () -> deleteChats();
MesiboDialogs.show(context, o);

MesiboDialogs.alert(context, "Signed Out", "Login again to continue.");
val o = MesiboDialogs.Options()
o.title = "Delete chats?"
o.positiveLabel = "Delete"
o.negativeLabel = MesiboUI.getConfig().common.cancelTitle
o.destructive = true
o.onPositive = Runnable { deleteChats() }
MesiboDialogs.show(context, o)

MesiboDialogs.alert(context, "Signed Out", "Login again to continue.")
let o = MesiboDialogOptions()
o.title = "Delete chats?"
o.positiveLabel = "Delete"
o.negativeLabel = MesiboUI.getConfig().common.cancelTitle
o.destructive = true
o.onPositive = { self.deleteChats() }
MesiboDialogs.show(self, options: o)

MesiboDialogs.alert(self, title: "Signed Out", message: "Login again to continue.")
MesiboDialogOptions *o = [MesiboDialogOptions new];
o.title = @"Delete chats?";
o.positiveLabel = @"Delete";
o.negativeLabel = [MesiboUI getConfig].common.cancelTitle;
o.destructive = YES;
o.onPositive = ^{ [self deleteChats]; };
[MesiboDialogs show:self options:o];

[MesiboDialogs alert:self title:@"Signed Out" message:@"Login again to continue."];

Differences between Android and iOS

ItemAndroidiOS
The app’s own picturesa drawable resource; the name ends in Resource, for example attachments.buttonImageResourcea UIImage, for example attachments.buttonImage
The keyboard of the Enter number fieldcontacts.enterAddressInputType, an InputTypecontacts.enterAddressKeyboard, a UIKeyboardType
The location groupmap tiles, static maps, zoom and their textsnot present; the location picker of MediaPicker is used
Placeholders in texts%s, %d%@, %d
Swipe actionsa full swipe does one actiona swipe shows buttons
Color choice in the Customize screena grid of colors and a color code fieldthe system color picker
Folder of wallpaper photosfiles/mesibouiApplication Support/MesiboUI