Pin a Recent Chat

Pin a Recent Chat#

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

    ChatManager.updateRecentChatPinStatus(jid: jid, pinRecentChat: pinRecentChat)
    JIDStringJid of a group
    PIN_RECENT_CHATbooleanif 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.

      let recentPinCount: Int = ChatManager.recentChatPinnedCount()