discourse/plugins/chat/test/javascripts/helpers/mock-presence-channel.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
283 B
JavaScript
Raw Normal View History

import EmberObject from "@ember/object";
export default class MockPresenceChannel extends EmberObject {
users = [];
name = null;
subscribed = false;
async unsubscribe() {
this.set("subscribed", false);
}
async subscribe() {
this.set("subscribed", true);
}
}