Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Delegate.im.conversation.loadList = () => {
return ChatManager.getAllConversations()
.then((result: Typings.Message.Origin) => {
result = result.map((item) => ({
...item,
imId: item.conversationId,
chatType: item.type,
}));
return result;
});
};
Delegate.im.conversation.loadItem = (imId, chatType, autoCreate) => {