Fix chatroom cruft
Changelog-Fixed: Fixed various issues with chatroom view Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -96,6 +96,7 @@ struct ChatView: View {
|
|||||||
if let ref_id = thread.replies.lookup(event.id) {
|
if let ref_id = thread.replies.lookup(event.id) {
|
||||||
if !is_reply_to_prev() {
|
if !is_reply_to_prev() {
|
||||||
ReplyQuoteView(privkey: damus_state.keypair.privkey, quoter: event, event_id: ref_id, image_cache: damus_state.image_cache, profiles: damus_state.profiles)
|
ReplyQuoteView(privkey: damus_state.keypair.privkey, quoter: event, event_id: ref_id, image_cache: damus_state.image_cache, profiles: damus_state.profiles)
|
||||||
|
.frame(maxHeight: 100)
|
||||||
.environmentObject(thread)
|
.environmentObject(thread)
|
||||||
ReplyDescription
|
ReplyDescription
|
||||||
}
|
}
|
||||||
@@ -112,7 +113,6 @@ struct ChatView: View {
|
|||||||
}
|
}
|
||||||
.padding(6)
|
.padding(6)
|
||||||
}
|
}
|
||||||
.padding([.leading], 2)
|
|
||||||
.background(Color.secondary.opacity(0.1))
|
.background(Color.secondary.opacity(0.1))
|
||||||
.cornerRadius(8.0)
|
.cornerRadius(8.0)
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ struct ChatroomView: View {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EndBlock()
|
EndBlock(height: 500)
|
||||||
}
|
}
|
||||||
.onReceive(NotificationCenter.default.publisher(for: .select_quote)) { notif in
|
.onReceive(NotificationCenter.default.publisher(for: .select_quote)) { notif in
|
||||||
let ev = notif.object as! NostrEvent
|
let ev = notif.object as! NostrEvent
|
||||||
|
|||||||
@@ -60,11 +60,14 @@ struct EventDetailView: View {
|
|||||||
switch cev {
|
switch cev {
|
||||||
case .collapsed(let c):
|
case .collapsed(let c):
|
||||||
Text("··· \(c.count) other notes ···")
|
Text("··· \(c.count) other notes ···")
|
||||||
|
.padding([.top,.bottom], 10)
|
||||||
.font(.footnote)
|
.font(.footnote)
|
||||||
.foregroundColor(.gray)
|
.foregroundColor(.gray)
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
//self.uncollapse_section(scroller: proxy, c: c)
|
//self.uncollapse_section(scroller: proxy, c: c)
|
||||||
//self.toggle_collapse_thread(scroller: proxy, id: nil)
|
//self.toggle_collapse_thread(scroller: proxy, id: nil)
|
||||||
|
let ev = thread.events[c.start]
|
||||||
|
thread.set_active_event(ev, privkey: damus.keypair.privkey)
|
||||||
toggle_thread_view()
|
toggle_thread_view()
|
||||||
}
|
}
|
||||||
case .event(let ev, let highlight):
|
case .event(let ev, let highlight):
|
||||||
|
|||||||
Reference in New Issue
Block a user