<div class="guest">
  <ng-container [ngSwitch]="message.type">
    <ng-container *ngSwitchCase="EventType.Join">
      {{
        'chat.event.inviteToRoomWith'
          | translate
            : {
                owner: getI18nForSir(message.sentMessageJson.owner),
                inviter: getI18nForSir(message.sentMessageJson.inviter)
              }
      }}
    </ng-container>
    <ng-container *ngSwitchCase="EventType.Exit">
      {{
        'chat.event.exitFromRoomWith'
          | translate: { exitor: message.sentMessage }
      }}
    </ng-container>
    <ng-container *ngSwitchCase="EventType.ForcedExit">
      {{
        'chat.event.ejectedFromRoomWith'
          | translate
            : {
                requester: message.exitForcingRequestUserName,
                ejected: message.sentMessage
              }
      }}
    </ng-container>
    <ng-container *ngSwitchCase="EventType.RenameRoom">
      {{
        'chat.event.renamedRoomWith'
          | translate
            : {
                requester: message.sentMessageJson.requester,
                roomName: message.sentMessageJson.roomName
              }
      }}
    </ng-container>
    <ng-container *ngSwitchCase="EventType.NotificationForTimerRoom">
      {{ message.sentMessage }}
    </ng-container>
    <ng-container *ngSwitchCase="EventType.GuideForRoomTimerChanged">
      {{
        'chat.event.setTimerWith'
          | translate
            : {
                requester: senderName,
                timer: getCalcTimer(message.sentMessageJson.time * 1000)
              }
      }}
    </ng-container>
    <ng-container *ngSwitchCase="EventType.NotificationForiOSCapture">
      {{
        'chat.event.iosCapture'
          | translate
            : {
                requester: message.sentMessage
              }
      }}
    </ng-container>
  </ng-container>
</div>
