Files
damus/damus/Nostr/Profiles.swift
William Casarin 82b7cab9b1 remove unused combine reference
Signed-off-by: William Casarin <jb55@jb55.com>
2022-07-28 13:11:58 -07:00

27 lines
485 B
Swift

//
// Profiles.swift
// damus
//
// Created by William Casarin on 2022-04-17.
//
import Foundation
import UIKit
class Profiles {
var profiles: [String: TimestampedProfile] = [:]
func add(id: String, profile: TimestampedProfile) {
profiles[id] = profile
}
func lookup(id: String) -> Profile? {
return profiles[id]?.profile
}
func lookup_with_timestamp(id: String) -> TimestampedProfile? {
return profiles[id]
}
}