wot: show friend icons is some views

easier to detect if someone is trying to fake us out

Changelog-Added: Friend icons next to names on some views. Check is friend. Arrows are friend-of-friends
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-08-09 16:48:47 -07:00
parent a59cb04ce0
commit 22cad4b072
13 changed files with 61 additions and 25 deletions

View File

@@ -90,7 +90,7 @@ struct ContentView: View {
var PostingTimelineView: some View {
ZStack {
if let damus = self.damus_state {
TimelineView(events: $home.events, loading: $home.loading, damus: damus)
TimelineView(events: $home.events, loading: $home.loading, damus: damus, show_friend_icon: false)
}
if privkey != nil {
PostButtonContainer {
@@ -119,7 +119,7 @@ struct ContentView: View {
PostingTimelineView
case .notifications:
TimelineView(events: $home.notifications, loading: $home.loading, damus: damus)
TimelineView(events: $home.notifications, loading: $home.loading, damus: damus, show_friend_icon: true)
.navigationTitle("Notifications")
case .dms: