initialize Flow
fun <T : BaseChannel> BaseMessageCollection<T>.initializeFlow(initPolicy: MessageCollectionInitPolicy = MessageCollectionInitPolicy.CACHE_AND_REPLACE_BY_API): Flow<MessageCollectionInitResult>
Initializes this collection from BaseMessageCollection.startingPoint. MessageCollectionInitResult.CachedResult should not be called if it is an error.
Return
The Flow of MessageCollectionInitResult.
Since
4.17.0
Parameters
init Policy
MessageCollectionInitPolicy used in how to deal with cache results and api results. Default is MessageCollectionInitPolicy.CACHE_AND_REPLACE_BY_API.