mergeReactions

fun mergeReactions(recentReactions: Collection<Reaction>, cachedReactions: Collection<Reaction>): Collection<Reaction>

Merges two collections of reactions by their Reaction.type.

Return

Collection of reactions where cached data is substituted by more recent one if they have same Reaction.type.

Parameters

recentReactions

More recent collection of reactions.

cachedReactions

More outdated collection of reactions.