Skip to content

Commit

Permalink
fix Availability
Browse files Browse the repository at this point in the history
  • Loading branch information
billypchan committed May 31, 2021
1 parent a5eb013 commit 1f8c80d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Model/User/ZMUser+Availability.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import Foundation
public enum Availability : Int, CaseIterable {
case none, available, busy, away

public init(proto : WireProtos.Availability) {
public init(proto: WireProtos.Availability) {
///TODO: change ZMAvailabilityType to NS_CLOSED_ENUM
switch proto.type {
case .none:
Expand Down Expand Up @@ -148,7 +148,7 @@ extension ZMUser {
}

public func updateAvailability(from genericMessage : GenericMessage) {
updateAvailability(Availability(genericMessage.availability))
updateAvailability(Availability(proto: genericMessage.availability))
}

private static let needsToNotifyAvailabilityBehaviourChangeKey = "needsToNotifyAvailabilityBehaviourChange"
Expand Down

0 comments on commit 1f8c80d

Please sign in to comment.