From 2e1fb712a1128548d32b8dd555e9c4f5b201916b Mon Sep 17 00:00:00 2001 From: KDSBrowne Date: Tue, 19 Sep 2017 12:01:02 -0700 Subject: [PATCH] use userId instead of username --- .../api/2.0/chat/server/handlers/chatPublicHistoryClear.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigbluebutton-html5/imports/api/2.0/chat/server/handlers/chatPublicHistoryClear.js b/bigbluebutton-html5/imports/api/2.0/chat/server/handlers/chatPublicHistoryClear.js index 2c465261ef..a4e4bf11d1 100644 --- a/bigbluebutton-html5/imports/api/2.0/chat/server/handlers/chatPublicHistoryClear.js +++ b/bigbluebutton-html5/imports/api/2.0/chat/server/handlers/chatPublicHistoryClear.js @@ -10,7 +10,7 @@ export default function publicHistoryClear({ header }, meetingId) { const SYSTEM_CHAT_TYPE = CHAT_CONFIG.type_system; if (meetingId) { - Chat.remove({ meetingId, toUsername: PUBLIC_CHAT_USERNAME }, + Chat.remove({ meetingId, toUserId: PUBLIC_CHAT_USERID }, Logger.info(`Cleared Chats (${meetingId})`)); addChat(meetingId, {