수정 :: 대화방 > event > context menu > 대회 회수 :: 버튼 표출 조건 수정.

This commit is contained in:
leejh 2019-10-16 15:03:27 +09:00
parent ac87fcf9c7
commit fe8b038466
2 changed files with 6 additions and 3 deletions

View File

@ -136,7 +136,7 @@
<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-template>
</mat-menu>

View File

@ -136,8 +136,11 @@ export class MessagesComponent implements OnInit {
return EventType.RecalledMessage === eventType;
}
isMine(message: Info): boolean {
return message.senderSeq === this.loginRes.userSeq;
isRecallable(message: Info): boolean {
return (
message.senderSeq === this.loginRes.userSeq &&
message.type !== EventType.RecalledMessage
);
}
/** [Event] MassTalk Detail View */