Skip to content

Commit 8e50027

Browse files
Updating naming of users to be muted
1 parent b706e12 commit 8e50027

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/StreamChatSwiftUI/ChatChannel/Reactions/MessageActions/DefaultMessageActions.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ extension MessageAction {
7575
for: message,
7676
channel: channel,
7777
chatClient: chatClient,
78-
unmutedUser: author,
78+
userToUnmute: author,
7979
onFinish: onFinish,
8080
onError: onError
8181
)
@@ -85,7 +85,7 @@ extension MessageAction {
8585
for: message,
8686
channel: channel,
8787
chatClient: chatClient,
88-
mutedUser: author,
88+
userToMute: author,
8989
onFinish: onFinish,
9090
onError: onError
9191
)
@@ -254,11 +254,11 @@ extension MessageAction {
254254
for message: ChatMessage,
255255
channel: ChatChannel,
256256
chatClient: ChatClient,
257-
mutedUser: ChatUser,
257+
userToMute: ChatUser,
258258
onFinish: @escaping (MessageActionInfo) -> Void,
259259
onError: @escaping (Error) -> Void
260260
) -> MessageAction {
261-
let muteController = chatClient.userController(userId: mutedUser.id)
261+
let muteController = chatClient.userController(userId: userToMute.id)
262262
let muteAction = {
263263
muteController.mute { error in
264264
if let error = error {
@@ -289,11 +289,11 @@ extension MessageAction {
289289
for message: ChatMessage,
290290
channel: ChatChannel,
291291
chatClient: ChatClient,
292-
unmutedUser: ChatUser,
292+
userToUnmute: ChatUser,
293293
onFinish: @escaping (MessageActionInfo) -> Void,
294294
onError: @escaping (Error) -> Void
295295
) -> MessageAction {
296-
let unmuteController = chatClient.userController(userId: unmutedUser.id)
296+
let unmuteController = chatClient.userController(userId: userToUnmute.id)
297297
let unmuteAction = {
298298
unmuteController.unmute { error in
299299
if let error = error {

0 commit comments

Comments
 (0)