LayerKit v0.14.0 Release Notes
-
โจ Enhancements
- Introduced Announcements, special Messages sent to all users of the application or to a list of users that will arrive outside of the context of a conversation. Announcements can only be sent through the Platform API.
- ๐ Introduced the ability to create a single distinct conversations between participants. This will prevent duplicate conversations if multiple users try to create conversations with each other at the same time. See Public API Changes for more details. Distinct conversations are now the default when creating new conversations. All conversations created before v0.14 are set to be non-distinct.
Public API Changes
- โ Added
LYRAnnouncement
, which models a platform message sent externally from any conversation.LYRAnnouncement
subclassesLYRMessage
and is queryable by itself. This works in conjunction with the Platform API. - โ Added
LYRConversationOptionsDistinctByParticipantsKey
toLYRConversation
as a key for the conversationoptions
initilization parameter. Setting the value for this key toYES
during initialization will guarantee that Layer only ever creates a single conversation for the specified participants.YES
is also default if no options are specified. - โ Added
isDistinct
property toLYRConversation
to indicate whether or not the conversation is distinct by its participant list.