Organized Chat Management: Channel archiving provides a clean way to organize your chat interface by moving less active conversations out of the main list while preserving all messages and functionality. Only conversation-type channels support archiving, with a maximum of 100 archived channels per user.

Archive Management

Channel archiving affects only the user who performs the action, providing personalized chat organization without impacting other participants.

Archive Channels

Hide from main chat list
  • Move channels to separate archived list
  • Preserve all messages and functionality
  • Personal action affecting only your view

Unarchive Channels

Restore to active list
  • Return channels to main chat list
  • Maintain original message timestamps
  • Continue conversations seamlessly

Archive Operations

Move channel to archived listThe archiveChannel function allows users to archive a specific conversation channel. Archiving a channel removes it from the active list channel but retains its data for future reference. This function takes one parameter, channelId, which specifies the ID of the channel to be archived.

Parameters

ParameterTypeRequiredDescription
channelIdStringUnique identifier of the conversation channel to archive

Archive Effects

  • Effect for the User: The archived chat is hidden from the user’s main chat list view and moved to a separate archived chat list. This action only affects the user who archives the chat; the other participant(s) in the conversation will still see the chat in their main list as usual.
  • Messages: Archiving does not delete any messages within the chat. Users can continue sending and receiving messages within the archived chat just like a normal chat.
  • Sorting: Chats within the archived list are sorted based on the timestamp of the last message exchanged.

Code Example

void archiveChannel(String channelId) async {
  await AmityChatClient.newChannelRepository()
      .archiveChannel(channelId);
}

Important Considerations

Channel Type Limitation: Only ‘conversation’ type channels (like DMs) can be archived. Community, Live, and Broadcast channels do not support archiving.
Archive Limit: A user can archive a maximum of 100 channels. An error message will be displayed if a user tries to exceed this limit.

Message Behavior in Archived Channels

  • Receiving New Messages: If another user sends a message in a chat you have archived, the chat will remain in your archived list. It will not automatically move back to the main chat list.
  • Notifications: You will not receive push notifications for new messages arriving in channels you have archived. The system prevents notifications for channels marked as archived by the recipient user.
  • Muted Chats: If a chat is muted and then archived, it is treated as a normal, unmuted chat within the archive list regarding its behavior (though notifications remain disabled due to the archive status).

Best Practices

Next Steps

Archive Strategy: Use archiving as a way to maintain focus on active conversations while preserving access to historical chats. Remember that archived channels still receive messages but don’t generate notifications, making them perfect for less urgent ongoing conversations.