[이슈처리 5] MyTalk 에서 unread count 보이는 문제 수정.

This commit is contained in:
leejinho 2019-11-22 09:03:32 +09:00
parent 447577aa1b
commit d90e93f0c6
4 changed files with 10 additions and 1 deletions

View File

@ -171,6 +171,11 @@
[userInfos]="userInfoList" [userInfos]="userInfoList"
[loginRes]="loginRes" [loginRes]="loginRes"
[sessionVerInfo]="sessionVerInfo" [sessionVerInfo]="sessionVerInfo"
[isShowUnreadCount]="
roomInfo.roomType !== RoomType.Mytalk &&
roomInfo.roomType !== RoomType.Bot &&
roomInfo.roomType !== RoomType.Allim
"
(moreEvent)="onMoreEvent($event)" (moreEvent)="onMoreEvent($event)"
(massDetail)="onMassDetail($event)" (massDetail)="onMassDetail($event)"
(save)="onSave($event)" (save)="onSave($event)"

View File

@ -151,6 +151,8 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
snackBarPreviewEvent: MatSnackBarRef<SimpleSnackBar>; snackBarPreviewEvent: MatSnackBarRef<SimpleSnackBar>;
RoomType = RoomType;
constructor( constructor(
private store: Store<any>, private store: Store<any>,
private sessionStorageService: SessionStorageService, private sessionStorageService: SessionStorageService,

View File

@ -154,7 +154,7 @@
<div class="time secondary-text"> <div class="time secondary-text">
<ul> <ul>
<li>{{ getUnreadCount(message) }}</li> <li *ngIf="isShowUnreadCount">{{ getUnreadCount(message) }}</li>
<li> <li>
{{ moment(message.sendDate).toDate() | date: 'a hh:mm' }} {{ moment(message.sendDate).toDate() | date: 'a hh:mm' }}
</li> </li>

View File

@ -42,6 +42,8 @@ export class MessagesComponent implements OnInit {
userInfos?: UserInfo[]; userInfos?: UserInfo[];
@Input() @Input()
sessionVerInfo: VersionInfo2Response; sessionVerInfo: VersionInfo2Response;
@Input()
isShowUnreadCount = true;
@Output() @Output()
openProfile = new EventEmitter<UserInfo>(); openProfile = new EventEmitter<UserInfo>();