Fix extension point id serialization bugs

This commit is contained in:
Maurice Parker 2020-05-03 14:15:57 -05:00
parent 5f05e945a8
commit 0344992cf4
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ enum ExtensionPointIdentifer: Hashable {
case .reddit(let username):
return [
"type": "reddit",
"screenName": username
"username": username
]
}
}
@ -73,7 +73,7 @@ enum ExtensionPointIdentifer: Hashable {
self = ExtensionPointIdentifer.twitter(screenName)
case "reddit":
guard let username = userInfo["username"] as? String else { return nil }
self = ExtensionPointIdentifer.twitter(username)
self = ExtensionPointIdentifer.reddit(username)
default:
return nil
}