add full ids to message
This commit is contained in:
parent
2a4b104129
commit
c560aefe6a
@ -28,6 +28,18 @@ class IRCMessage implements IMessage {
|
|||||||
public target?: IMessageTarget,
|
public target?: IMessageTarget,
|
||||||
public guest = true) {}
|
public guest = true) {}
|
||||||
|
|
||||||
|
public get fullSenderID(): string {
|
||||||
|
return this.source.fullName + '/' + this.sender.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get fullRoomID(): string {
|
||||||
|
if (!this.target) {
|
||||||
|
return this.source.fullName;
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.source.fullName + '/' + this.target.id;
|
||||||
|
}
|
||||||
|
|
||||||
public resolve(...args: any[]): void {
|
public resolve(...args: any[]): void {
|
||||||
this.resolved = true;
|
this.resolved = true;
|
||||||
this.source.resolve(this, ...args);
|
this.source.resolve(this, ...args);
|
||||||
|
33
tslint.json
33
tslint.json
@ -14,10 +14,6 @@
|
|||||||
"severity": "warning"
|
"severity": "warning"
|
||||||
},
|
},
|
||||||
"eofline": true,
|
"eofline": true,
|
||||||
"import-blacklist": [
|
|
||||||
true,
|
|
||||||
"rxjs/Rx"
|
|
||||||
],
|
|
||||||
"import-spacing": true,
|
"import-spacing": true,
|
||||||
"indent": {
|
"indent": {
|
||||||
"options": [
|
"options": [
|
||||||
@ -121,33 +117,6 @@
|
|||||||
"check-type",
|
"check-type",
|
||||||
"check-typecast"
|
"check-typecast"
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
"component-class-suffix": true,
|
|
||||||
"contextual-lifecycle": true,
|
|
||||||
"directive-class-suffix": true,
|
|
||||||
"no-conflicting-lifecycle": true,
|
|
||||||
"no-host-metadata-property": true,
|
|
||||||
"no-input-rename": true,
|
|
||||||
"no-inputs-metadata-property": true,
|
|
||||||
"no-output-native": true,
|
|
||||||
"no-output-on-prefix": true,
|
|
||||||
"no-output-rename": true,
|
|
||||||
"no-outputs-metadata-property": true,
|
|
||||||
"template-banana-in-box": true,
|
|
||||||
"template-no-negated-async": true,
|
|
||||||
"use-lifecycle-interface": true,
|
|
||||||
"use-pipe-transform-interface": true,
|
|
||||||
"directive-selector": [
|
|
||||||
true,
|
|
||||||
"attribute",
|
|
||||||
"app",
|
|
||||||
"camelCase"
|
|
||||||
],
|
|
||||||
"component-selector": [
|
|
||||||
true,
|
|
||||||
"element",
|
|
||||||
"app",
|
|
||||||
"kebab-case"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user