1
0
mirror of https://github.com/NicolasConstant/sengi synced 2025-01-24 07:22:50 +01:00

fix create new status mention bug

This commit is contained in:
Nicolas Constant 2019-07-05 17:22:33 -04:00
parent 60f8c23c5b
commit 30e9fdc2d9
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688

View File

@ -51,9 +51,11 @@ export class CreateStatusComponent implements OnInit, OnDestroy {
private _isDirectMention: boolean;
@Input('isDirectMention')
set isDirectMention(value: boolean) {
if (value) {
this._isDirectMention = value;
this.initMention();
}
}
get isDirectMention(): boolean {
return this._isDirectMention;
}
@ -61,9 +63,11 @@ export class CreateStatusComponent implements OnInit, OnDestroy {
private _replyingUserHandle: string;
@Input('replyingUserHandle')
set replyingUserHandle(value: string) {
if (value) {
this._replyingUserHandle = value;
this.initMention();
}
}
get replyingUserHandle(): string {
return this._replyingUserHandle;
}