From 89b5b3c4e1b45270afa8011d18ebc9c37df230e9 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 26 Mar 2020 13:47:31 +0100 Subject: [PATCH] Fix little error --- src/controllers/AccountController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }