Skip to content

Commit

Permalink
Fix signature of PresenceMember initializer
Browse files Browse the repository at this point in the history
This inconsistency with the `data` property was a mistake in 20e7f5f.
  • Loading branch information
lawrence-forooghian committed Dec 10, 2024
1 parent 111404c commit d7b5e53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Example/AblyChatExample/Mocks/MockClients.swift
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ actor MockPresence: Presence {
MockStrings.names.shuffled().map { name in
PresenceMember(
clientID: name,
data: PresenceData(userCustomData: nil),
data: nil,
action: .present,
extras: nil,
updatedAt: Date()
Expand All @@ -289,7 +289,7 @@ actor MockPresence: Presence {
MockStrings.names.shuffled().map { name in
PresenceMember(
clientID: name,
data: PresenceData(userCustomData: nil),
data: nil,
action: .present,
extras: nil,
updatedAt: Date()
Expand Down
2 changes: 1 addition & 1 deletion Sources/AblyChat/Presence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public struct PresenceMember: Sendable {
}
}

public init(clientID: String, data: PresenceData, action: PresenceMember.Action, extras: (any Sendable)?, updatedAt: Date) {
public init(clientID: String, data: PresenceData?, action: PresenceMember.Action, extras: (any Sendable)?, updatedAt: Date) {
self.clientID = clientID
self.data = data
self.action = action
Expand Down

0 comments on commit d7b5e53

Please sign in to comment.