mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 03:43:09 +02:00
Fix
This commit is contained in:
parent
e85f9f4aa5
commit
e94c73efe2
15 changed files with 15 additions and 15 deletions
|
@ -8,7 +8,7 @@ export default abstract class Channel {
|
||||||
protected connection: Connection;
|
protected connection: Connection;
|
||||||
public id: string;
|
public id: string;
|
||||||
public abstract readonly chName: string;
|
public abstract readonly chName: string;
|
||||||
public abstract readonly shouldShare: boolean;
|
public static readonly shouldShare: boolean;
|
||||||
|
|
||||||
protected get user() {
|
protected get user() {
|
||||||
return this.connection.user;
|
return this.connection.user;
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Channel from '../channel';
|
||||||
|
|
||||||
export default class extends Channel {
|
export default class extends Channel {
|
||||||
public readonly chName = 'drive';
|
public readonly chName = 'drive';
|
||||||
public readonly shouldShare = true;
|
public static shouldShare = true;
|
||||||
|
|
||||||
@autobind
|
@autobind
|
||||||
public async init(params: any) {
|
public async init(params: any) {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import Channel from '../../channel';
|
||||||
|
|
||||||
export default class extends Channel {
|
export default class extends Channel {
|
||||||
public readonly chName = 'gamesReversiGame';
|
public readonly chName = 'gamesReversiGame';
|
||||||
public readonly shouldShare = false;
|
public static shouldShare = false;
|
||||||
|
|
||||||
private gameId: mongo.ObjectID;
|
private gameId: mongo.ObjectID;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import Channel from '../../channel';
|
||||||
|
|
||||||
export default class extends Channel {
|
export default class extends Channel {
|
||||||
public readonly chName = 'gamesReversi';
|
public readonly chName = 'gamesReversi';
|
||||||
public readonly shouldShare = true;
|
public static shouldShare = true;
|
||||||
|
|
||||||
@autobind
|
@autobind
|
||||||
public async init(params: any) {
|
public async init(params: any) {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import Channel from '../channel';
|
||||||
|
|
||||||
export default class extends Channel {
|
export default class extends Channel {
|
||||||
public readonly chName = 'globalTimeline';
|
public readonly chName = 'globalTimeline';
|
||||||
public readonly shouldShare = true;
|
public static shouldShare = true;
|
||||||
|
|
||||||
private mutedUserIds: string[] = [];
|
private mutedUserIds: string[] = [];
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import Channel from '../channel';
|
||||||
|
|
||||||
export default class extends Channel {
|
export default class extends Channel {
|
||||||
public readonly chName = 'hashtag';
|
public readonly chName = 'hashtag';
|
||||||
public readonly shouldShare = false;
|
public static shouldShare = false;
|
||||||
|
|
||||||
@autobind
|
@autobind
|
||||||
public async init(params: any) {
|
public async init(params: any) {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import Channel from '../channel';
|
||||||
|
|
||||||
export default class extends Channel {
|
export default class extends Channel {
|
||||||
public readonly chName = 'homeTimeline';
|
public readonly chName = 'homeTimeline';
|
||||||
public readonly shouldShare = true;
|
public static shouldShare = true;
|
||||||
|
|
||||||
private mutedUserIds: string[] = [];
|
private mutedUserIds: string[] = [];
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import Channel from '../channel';
|
||||||
|
|
||||||
export default class extends Channel {
|
export default class extends Channel {
|
||||||
public readonly chName = 'hybridTimeline';
|
public readonly chName = 'hybridTimeline';
|
||||||
public readonly shouldShare = true;
|
public static shouldShare = true;
|
||||||
|
|
||||||
private mutedUserIds: string[] = [];
|
private mutedUserIds: string[] = [];
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import Channel from '../channel';
|
||||||
|
|
||||||
export default class extends Channel {
|
export default class extends Channel {
|
||||||
public readonly chName = 'localTimeline';
|
public readonly chName = 'localTimeline';
|
||||||
public readonly shouldShare = true;
|
public static shouldShare = true;
|
||||||
|
|
||||||
private mutedUserIds: string[] = [];
|
private mutedUserIds: string[] = [];
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import Channel from '../channel';
|
||||||
|
|
||||||
export default class extends Channel {
|
export default class extends Channel {
|
||||||
public readonly chName = 'main';
|
public readonly chName = 'main';
|
||||||
public readonly shouldShare = true;
|
public static shouldShare = true;
|
||||||
|
|
||||||
@autobind
|
@autobind
|
||||||
public async init(params: any) {
|
public async init(params: any) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Channel from '../channel';
|
||||||
|
|
||||||
export default class extends Channel {
|
export default class extends Channel {
|
||||||
public readonly chName = 'messagingIndex';
|
public readonly chName = 'messagingIndex';
|
||||||
public readonly shouldShare = true;
|
public static shouldShare = true;
|
||||||
|
|
||||||
@autobind
|
@autobind
|
||||||
public async init(params: any) {
|
public async init(params: any) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import Channel from '../channel';
|
||||||
|
|
||||||
export default class extends Channel {
|
export default class extends Channel {
|
||||||
public readonly chName = 'messaging';
|
public readonly chName = 'messaging';
|
||||||
public readonly shouldShare = false;
|
public static shouldShare = false;
|
||||||
|
|
||||||
private otherpartyId: string;
|
private otherpartyId: string;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ const ev = new Xev();
|
||||||
|
|
||||||
export default class extends Channel {
|
export default class extends Channel {
|
||||||
public readonly chName = 'notesStats';
|
public readonly chName = 'notesStats';
|
||||||
public readonly shouldShare = true;
|
public static shouldShare = true;
|
||||||
|
|
||||||
@autobind
|
@autobind
|
||||||
public async init(params: any) {
|
public async init(params: any) {
|
||||||
|
|
|
@ -6,7 +6,7 @@ const ev = new Xev();
|
||||||
|
|
||||||
export default class extends Channel {
|
export default class extends Channel {
|
||||||
public readonly chName = 'serverStats';
|
public readonly chName = 'serverStats';
|
||||||
public readonly shouldShare = true;
|
public static shouldShare = true;
|
||||||
|
|
||||||
@autobind
|
@autobind
|
||||||
public async init(params: any) {
|
public async init(params: any) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Channel from '../channel';
|
||||||
|
|
||||||
export default class extends Channel {
|
export default class extends Channel {
|
||||||
public readonly chName = 'userList';
|
public readonly chName = 'userList';
|
||||||
public readonly shouldShare = false;
|
public static shouldShare = false;
|
||||||
|
|
||||||
@autobind
|
@autobind
|
||||||
public async init(params: any) {
|
public async init(params: any) {
|
||||||
|
|
Loading…
Reference in a new issue