Messaging UI - Profile Configuration
mesibo provides ready-to-use screens to view and edit user profiles and group profiles: a profile screen with the picture, the name, the status and the settings of the chat, an editor with multiple profile photos, and a media screen with the photos, videos, documents and links of a chat.
The profileViewer group sets the profile screen and the media screen. The profileEditor group
sets the editor of the user’s own profile and of group profiles.
Profile screen
The profile screen shows a user profile or a group profile, full screen. From the top:
- The picture, the name and the status, under a transparent toolbar. A tap on the picture shows it full screen.
- A row of round buttons. The first is Message: it opens the chat, or goes back to it. The app
adds its own buttons after it, for example voice and video call, in
MesiboUI_onInitScreen. - The settings of the chat, for example mute, block and disappearing messages.
The More menu of the toolbar has Encryption while end-to-end encryption is on, followed by the app’s own items. Encryption is shown for user profiles only; group chats are not end-to-end encrypted.
Block calls has three choices: off, video calls only, or all calls.
| Option | Description |
|---|---|
profileViewer.enableMessageButton | The Message button (default on) |
profileViewer.messageButtonTitle | The text of the Message button |
profileViewer.encryptionTitle | The Encryption item of the More menu |
profileViewer.enableBlockMessages, profileViewer.enableBlockCalls | The Block messages and Block calls rows |
profileViewer.blockCallsTitle | The title of the Block calls row |
profileViewer.blockNoCallsTitle, .blockVideoCallsTitle, .blockAllCallsTitle | The choices of Block calls. Default: Off, Video calls, All calls |
profileViewer.showAddress, profileViewer.showLastSeen | The address and the last seen time of a user |
Profile photos
A user profile or a group profile has up to profileEditor.maxPhotos photos (default 8). The first
photo is the main photo.
The profile editor and the group editor show the main photo with a + button, and under it a row of all the photos:
- A tap on the main photo opens the photos in the viewer.
- The + button, on the main photo or at the end of the row, adds photos.
- A tap on a photo in the row offers View, Make main photo and Remove.
- A new photo opens in the photo editor, with the crop fixed to a square. A photo that is not cropped is cut to the centered square.
- Changes are saved when the user taps Save.
Only group admins can change the photos of a group. With maxPhotos set to 1, the editor shows
one photo and no row.
| Option | Description |
|---|---|
profileEditor.maxPhotos | The number of photos of a profile (default 8) |
profileEditor.photosTitle, .addPhotosTitle, .makeMainPhotoTitle | The texts of the editor |
Profile media
The profile screen has a Media and docs row with the number of files and links in the chat. Under it is a strip of the latest photos and videos. A tap on a picture opens the viewer, which swipes through the others.
The row, and the > at the end of the strip, open the media screen. The media screen has four tabs: Photos, Videos, Documents and Links. Items are newest first, under month headers, and load while scrolling.
- A tap on a photo or video opens the viewer.
- A tap on a document opens it. A document not downloaded yet is downloaded first.
- Links show their preview picture and title. A tap opens the link.
| Option | Description |
|---|---|
profileViewer.showMedia | The media row and strip (default on) |
profileViewer.mediaTitle | The row and the title of the media screen. Default: Media and docs |
profileViewer.photosTitle, .videosTitle, .documentsTitle, .linksTitle | The tabs of the media screen |
profileViewer.emptyPhotosMessage, .emptyVideosMessage, .emptyDocumentsMessage, .emptyLinksMessage | Shown when a tab has no items |