diff --git a/src/controllers/AccountController.ts b/src/controllers/AccountController.ts index 15148fc..c04b4e0 100644 --- a/src/controllers/AccountController.ts +++ b/src/controllers/AccountController.ts @@ -259,7 +259,7 @@ export class AccountController { conversations_list: data.conversations.map(ConversationsController.ConversationToAPI), // Conversation messages - conversation_messages: {}, + conversations_messages: {}, // Friends list friends_list: data.friendsList.map(f => FriendsController.FriendToAPI(f, false)), @@ -270,7 +270,7 @@ export class AccountController { // Fill conversation messages entry for(const conv of data.conversations) { - out.conversation_messages[conv.id] = + out.conversations_messages[conv.id] = data.conversationsMessages[conv.id].map(ConversationsController.ConversationMessageToAPI) }