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 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 {
|
||||
this.resolved = true;
|
||||
this.source.resolve(this, ...args);
|
||||
|
33
tslint.json
33
tslint.json
@ -14,10 +14,6 @@
|
||||
"severity": "warning"
|
||||
},
|
||||
"eofline": true,
|
||||
"import-blacklist": [
|
||||
true,
|
||||
"rxjs/Rx"
|
||||
],
|
||||
"import-spacing": true,
|
||||
"indent": {
|
||||
"options": [
|
||||
@ -121,33 +117,6 @@
|
||||
"check-type",
|
||||
"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…
Reference in New Issue
Block a user