Skip to content

Commit d888d07

Browse files
authored
Поправил запрос данных пользователя в чате (#178)
1 parent 541ee9c commit d888d07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwiftUI-WorkoutApp/SWModels/Sources/SWModels/UserResponse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public struct UserResponse: Codable, Identifiable, Hashable {
6767

6868
public init(dialog: DialogResponse) {
6969
self.init(
70-
id: dialog.id,
70+
id: dialog.anotherUserID ?? 0,
7171
userName: dialog.anotherUserName,
7272
imageStringURL: dialog.anotherUserImageURL?.absoluteString
7373
)

0 commit comments

Comments
 (0)