Archive/Unarchive
#
Archive/Unarchive SettingsArchive Chats Permanent status can set by enabling/disabling the option.
Argument | Type | Description |
---|---|---|
STATUS | Bool | true to enable archive chat false to disable archive chat |
CALLBACK | FlyCompletionHandler | FlyCompletionHandler used as completion Handler |
#
Check a user is UnArchivedTo check whether the given jid was archived or not
Argument | Type | Description |
---|---|---|
JID | String | jid of the user/group |
#
Archive Settings StatusGet Archive Settings Status to keep the archived chats permanent.
info
While user Logging the app, archived settings status will be synced from server by calling the method ChatManager.shared.getArchivedSettingsStatusFromServer() and status will be updated to ChatManager.shared.isArchivedSettingsEnabled()
#
Archive/Unarchive a recent chat conversation#
Archive:Archiving a chat conversation makes the chat not appear in recent chat list, mostly used on chats which are inactive for a long time.
#
UnArchive:Unarchiving a archived recent chat conversation makes the chat conversation appear in recent chat list again.
Argument | Type | Description |
---|---|---|
JIDS | [String] | jids of the user/group to Archive/UnArchive |
STATUS | Bool | true to archive the recent chat false to unarchive the recent chat |
CALLBACK | FlyCompletionHandler | FlyCompletionHandler used as completion Handler |
#
Get List of archived recent chat conversationAn archived chat won't be listed in recent chat list. To get the list of archived chats call the below method.
Argument | Type | Description |
---|---|---|
CALLBACK | FlyCompletionHandler | FlyCompletionHandler used as completion Handler |
info
While user Logging the app, if any chats archived then list will be synced by fetching this method ChatManager.getArchivedChatsFromServer() the list of Archived JIDs will update into ChatManager.getArchivedChatList().