Compare commits

...
Author SHA1 Message Date
buzzert 3217c3f66e ios: add copy session ID to chat menu
TestFlight / Build and upload (push) Successful in 1m45s
2026-09-06 14:17:42 -07:00
@@ -1,5 +1,6 @@
import Observation import Observation
import SwiftUI import SwiftUI
import UIKit
struct SybilSidebarView: View { struct SybilSidebarView: View {
@Bindable var viewModel: SybilViewModel @Bindable var viewModel: SybilViewModel
@@ -169,7 +170,7 @@ struct SybilSidebarItemList: View {
Label(item.starred ? "Unstar" : "Star", systemImage: item.starred ? "star.slash" : "star") Label(item.starred ? "Unstar" : "Star", systemImage: item.starred ? "star.slash" : "star")
} }
if item.kind == .chat { if case let .chat(chatID) = item.selection {
Button { Button {
forkChat(item) forkChat(item)
} label: { } label: {
@@ -183,6 +184,12 @@ struct SybilSidebarItemList: View {
} label: { } label: {
Label("Rename", systemImage: "pencil") Label("Rename", systemImage: "pencil")
} }
Button {
UIPasteboard.general.string = chatID
} label: {
Label("Copy Session ID", systemImage: "doc.on.doc")
}
} }
Button(role: .destructive) { Button(role: .destructive) {