<nav title="视频接通记录"></nav>
<ion-content class="content">
  @for (item of list; track $index) {
  <div class="log-item" (click)="toUrl(item.id)">
    <div class="item-col">
      @if (user?.id === item?.get("user")?.id) {
        <div class="title">与{{ item?.get("profile")?.get("user")?.get("nickname") }}直播通话</div>
      }@else {
        <div class="title">与{{ user?.get("nickname") }}直播通话</div>
      }
      <div class="desc">
        {{ item?.get("createdAt") | date : "yyyy-MM-dd HH:mm" }}
      </div>
    </div>
    <div class="item-col-right">
      <div class="row">
        <div class="desc">直播UID：{{ item?.get("uid") }}</div>
        <div class="desc">
          @if (item?.get("isLive")) {
          <div class="tag"></div>
          接通 }@else { 未接通 }
        </div>
      </div>
      <ion-icon name="chevron-forward-outline"></ion-icon>
    </div>
  </div>
  }
  <ion-infinite-scroll (ionInfinite)="onIonInfinite($event)">
    <ion-infinite-scroll-content></ion-infinite-scroll-content>
  </ion-infinite-scroll>
</ion-content>
