Skip to content
Snippets Groups Projects

Messenger example - send auth request

Merged Dariusz Rybicki requested to merge feature/messenger-example-contact-request into development
3 files
+ 157
97
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -25,6 +25,8 @@ public struct ContactState: Equatable {
@@ -25,6 +25,8 @@ public struct ContactState: Equatable {
public enum ContactAction: Equatable {
public enum ContactAction: Equatable {
case start
case start
case dbContactFetched(XXModels.Contact?)
case dbContactFetched(XXModels.Contact?)
 
case saveFactsTapped
 
case sendRequestTapped
}
}
public struct ContactEnvironment {
public struct ContactEnvironment {
@@ -75,5 +77,11 @@ public let contactReducer = Reducer<ContactState, ContactAction, ContactEnvironm
@@ -75,5 +77,11 @@ public let contactReducer = Reducer<ContactState, ContactAction, ContactEnvironm
case .dbContactFetched(let contact):
case .dbContactFetched(let contact):
state.dbContact = contact
state.dbContact = contact
return .none
return .none
 
 
case .saveFactsTapped:
 
return .none
 
 
case .sendRequestTapped:
 
return .none
}
}
}
}
Loading