Pin a Recent Chat

Update Recent Chat Pinned Status#

To pin a recent chat which makes a particular recent chat to appear at the top of the recent chat list.

Mirrorfly.updateRecentChatPinStatus(jid: JID, pinStatus: PIN_RECENT_CHAT);
ArgumentTypeDescription
JIDStringjid of the user/group
PIN_RECENT_CHATboolif true chat will be pinned else the chat will be unpinned

Recent Chat Pinned Count#

To get the pinned count on recent chat list call the below method.

int? pinnedCount = await Mirrorfly.getRecentChatPinnedCount();