Remove chainID from PushDevice

pull/2/head
Michael Scoff 7 years ago
parent db1f298fae
commit 8140c24626
  1. 1
      Trust/Models/PushDevice.swift
  2. 6
      Trust/Settings/Coordinators/PushNotificationsRegistrar.swift

@ -6,5 +6,4 @@ struct PushDevice: Encodable {
let deviceID: String let deviceID: String
let token: String let token: String
let wallets: [String] let wallets: [String]
let chainID: Int
} }

@ -33,8 +33,7 @@ class PushNotificationsRegistrar {
let device = PushDevice( let device = PushDevice(
deviceID: UIDevice.current.identifierForVendor!.uuidString, deviceID: UIDevice.current.identifierForVendor!.uuidString,
token: "", token: "",
wallets: [], wallets: []
chainID: config.chainID
) )
trustProvider.request(.unregister(device: device)) { _ in } trustProvider.request(.unregister(device: device)) { _ in }
@ -49,8 +48,7 @@ class PushNotificationsRegistrar {
let device = PushDevice( let device = PushDevice(
deviceID: UIDevice.current.identifierForVendor!.uuidString, deviceID: UIDevice.current.identifierForVendor!.uuidString,
token: token, token: token,
wallets: addresses.map { $0.address }, wallets: addresses.map { $0.address }
chainID: config.chainID
) )
trustProvider.request(.register(device: device)) { _ in } trustProvider.request(.register(device: device)) { _ in }

Loading…
Cancel
Save