mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 03:33:39 +08:00
16 lines
283 B
JavaScript
16 lines
283 B
JavaScript
|
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);
|
||
|
}
|
||
|
}
|