Files
damus/damus/Models/FollowTarget.swift
William Casarin 097cc54bba extract HomeModel from ContentView
huge refactor

Signed-off-by: William Casarin <jb55@jb55.com>
2022-05-24 12:57:40 -07:00

26 lines
366 B
Swift

//
// FollowNotify.swift
// damus
//
// Created by William Casarin on 2022-05-24.
//
import Foundation
enum FollowTarget {
case pubkey(String)
case contact(NostrEvent)
var pubkey: String {
switch self {
case .pubkey(let pk):
return pk
case .contact(let ev):
return ev.pubkey
}
}
}