Merge previously persisted thread messages with an incoming delta-only payload by finding the longest overlap and appending only the new tail. This is effectively the inverse of _extractMessageDelta.
API
export declare function mergeMessagesForThread(
saved?: Chat.Api.Message [],
incoming?: Chat.Api.Message [],
): Chat.Api.Message [];mergeMessagesForThread
Chat.Api.Message[]@optionalsaved:Chat.Api.Message[]@optionalincoming:Chat.Api.Message[]@returnsChat.Api.Message[]