mirror of
https://github.com/discourse/discourse.git
synced 2025-06-08 00:27:32 +08:00
DEV: prevents Firefox ESR tests to crash on ||=
(#14758)
A follow up PR should investigate why `proposal-logical-assignment-operators` is not getting used here (test file?) but this should be enough to get things running.
This commit is contained in:
@ -35,8 +35,10 @@ export default function (helper) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getChannelInfo(name) {
|
export function getChannelInfo(name) {
|
||||||
channels[name] ||= { count: 0, users: [], last_message_id: 0 };
|
return (
|
||||||
return channels[name];
|
channels[name] ||
|
||||||
|
(channels[name] = { count: 0, users: [], last_message_id: 0 })
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function joinChannel(name, user) {
|
export function joinChannel(name, user) {
|
||||||
|
Reference in New Issue
Block a user