Archive/Unarchive

Archive/Unarchive Settings#

Archive Chats Permanent status can set by enabling/disabling the option.

FlyCore.enableDisableArchivedSettings(Boolean, FlyCallback { isSuccess, throwable, data ->});
ArgumentDescriptionType
BOOLEANBooleantrue to archive the recent chat false to unarchive the recent chat

Archive Settings Status#

Get Archive Settings Status to keep the archived chats permanent.

FlyCore.isArchivedSettingsEnabled();
info

The archived settings status will be returned either True or False

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.

FlyCore.updateArchiveUnArchiveChat(JID, BOOLEAN, FlyCallback { isSuccess, throwable, data ->});
ArgumentDescriptionType
JIDStringjid of the user/group to Archive/UnArchive
BOOLEANBooleantrue to archive the recent chat false to unarchive the recent chat

Get List of archived recent chat conversation#

An archived chat won't be listed in recent chat list. To get the list of archived chats call the below method.

FlyCore.getArchivedChatsFromServer();
FlyCore.getArchivedChatList((isSuccess, throwable, data) -> {
if (isSuccess) {
ArrayList<RecentChat> result = (ArrayList<RecentChat>) data.get("data")
} else {
//Getting users blocked me list failed print throwable to find the exception details.
}
});
ArgumentTypeDescription
CALLBACKFlyCallbackFlyCallback implemented as lambda expression
info

While user Logging the app, if any chats archived then list will be synced by fetching this method FlyCore.getArchivedChatsFromServer() the list of Archived JIDs will update into FlyCore.getArchivedChatList().