notify: switch over to new typesafe notifications

This commit is contained in:
William Casarin
2023-07-30 10:50:41 -07:00
parent 80063af19a
commit b40c595a7c
39 changed files with 129 additions and 289 deletions
+1 -2
View File
@@ -98,8 +98,7 @@ struct ProfileName: View {
SupporterBadge(percent: supporter)
}
}
.onReceive(handle_notify(.profile_updated)) { notif in
let update = notif.object as! ProfileUpdate
.onReceive(handle_notify(.profile_updated)) { update in
if update.pubkey != pubkey {
return
}