Fix extension point id serialization bugs
This commit is contained in:
parent
5f05e945a8
commit
0344992cf4
|
@ -53,7 +53,7 @@ enum ExtensionPointIdentifer: Hashable {
|
||||||
case .reddit(let username):
|
case .reddit(let username):
|
||||||
return [
|
return [
|
||||||
"type": "reddit",
|
"type": "reddit",
|
||||||
"screenName": username
|
"username": username
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ enum ExtensionPointIdentifer: Hashable {
|
||||||
self = ExtensionPointIdentifer.twitter(screenName)
|
self = ExtensionPointIdentifer.twitter(screenName)
|
||||||
case "reddit":
|
case "reddit":
|
||||||
guard let username = userInfo["username"] as? String else { return nil }
|
guard let username = userInfo["username"] as? String else { return nil }
|
||||||
self = ExtensionPointIdentifer.twitter(username)
|
self = ExtensionPointIdentifer.reddit(username)
|
||||||
default:
|
default:
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue