diff --git a/app/assets/javascripts/discourse/tests/helpers/presence-pretender.js b/app/assets/javascripts/discourse/tests/helpers/presence-pretender.js index eb356a153af..7afc731e5f1 100644 --- a/app/assets/javascripts/discourse/tests/helpers/presence-pretender.js +++ b/app/assets/javascripts/discourse/tests/helpers/presence-pretender.js @@ -48,7 +48,7 @@ export function joinChannel(name, user) { publishToMessageBus( `/presence${name}`, { - entering_users: [user], + entering_users: [Object.assign({}, user)], }, 0, channel.last_message_id