commit bf14d7138ac37e6ea3f90a4260f9c6a560b49040
parent 0c5da08a4243569222ae20dc5c935e7bd7a49037
Author: William Casarin <jb55@jb55.com>
Date: Tue, 11 Feb 2025 15:58:00 -0800
driveby compile warning fixes
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/damus/Models/HomeModel.swift b/damus/Models/HomeModel.swift
@@ -375,6 +375,8 @@ class HomeModel: ContactsDelegate {
boost_ev_id = inner_ev.id
Task {
+ // NOTE (jb55): remove this after nostrdb update, since nostrdb
+ // processess reposts when note is ingested
guard validate_event(ev: inner_ev) == .ok else {
return
}
@@ -394,7 +396,7 @@ class HomeModel: ContactsDelegate {
switch self.damus_state.boosts.add_event(ev, target: e) {
case .already_counted:
break
- case .success(let n):
+ case .success(_):
notify(.update_stats(note_id: e))
}
}
@@ -403,7 +405,7 @@ class HomeModel: ContactsDelegate {
switch damus_state.quote_reposts.add_event(ev, target: target) {
case .already_counted:
break
- case .success(let n):
+ case .success(_):
notify(.update_stats(note_id: target))
}
}