damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 042b7da31593c15595c7b35f5cc005f85b93e4e6
parent e62ba5826bb48f929b6574f9f5d9534f8b4e1740
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 23 Aug 2023 15:56:25 -0700

status: ignore processing expired events

Diffstat:
Mdamus/Models/HomeModel.swift | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/damus/Models/HomeModel.swift b/damus/Models/HomeModel.swift @@ -200,6 +200,10 @@ class HomeModel { return } + if let expires = st.expires_at, Date.now >= expires { + return + } + damus_state.profiles.profile_data(ev.pubkey).status.update_status(st) }