수정 :: 대화방 > event > context menu > 대회 회수 :: 버튼 표출 조건 수정.
This commit is contained in:
parent
ac87fcf9c7
commit
fe8b038466
|
@ -136,7 +136,7 @@
|
||||||
<button mat-menu-item>대화 전달</button>
|
<button mat-menu-item>대화 전달</button>
|
||||||
<button mat-menu-item>대화 나에게 전달</button>
|
<button mat-menu-item>대화 나에게 전달</button>
|
||||||
<button mat-menu-item>대화 삭제</button>
|
<button mat-menu-item>대화 삭제</button>
|
||||||
<button mat-menu-item *ngIf="isMine(message)">대화 회수</button>
|
<button mat-menu-item *ngIf="isRecallable(message)">대화 회수</button>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</mat-menu>
|
</mat-menu>
|
||||||
|
|
|
@ -136,8 +136,11 @@ export class MessagesComponent implements OnInit {
|
||||||
return EventType.RecalledMessage === eventType;
|
return EventType.RecalledMessage === eventType;
|
||||||
}
|
}
|
||||||
|
|
||||||
isMine(message: Info): boolean {
|
isRecallable(message: Info): boolean {
|
||||||
return message.senderSeq === this.loginRes.userSeq;
|
return (
|
||||||
|
message.senderSeq === this.loginRes.userSeq &&
|
||||||
|
message.type !== EventType.RecalledMessage
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** [Event] MassTalk Detail View */
|
/** [Event] MassTalk Detail View */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user