[Feature Request]: Add `chat.bsky.convo` reply and group conversation support

Đang mở
#320 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
43/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
swift
Lĩnh vực
api

Hướng nghiên cứu

Start with Sources/ATProtoKit/Models/Lexicons/chat.bsky/Convo/ChatBskyConvoDefs.swift and the wrappers under Sources/ATProtoKit/APIReference/ChatBskyAPI/; compare their existing acceptConvo and muteConvo patterns with the referenced chat.bsky.convo lexicons. Add the listed reply and group types and fields, then expose the four requested endpoints with api.bsky.chat routing. Done when replies, group metadata, and all four operations are available through ATProtoBlueskyChat.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

new feature
Summary

chat.bsky.convo upstream has been extended with two cross-cutting additions that are not yet reflected in the typed models or wrappers: message-level reply (replyTo on both input and view) and group conversations (convoView.kind union with #groupConvo, plus four new XRPC endpoints). Currently the SDK exposes neither, so the entire reply / group surface is unreachable through ATProtoBlueskyChat.

Pain points

The reply / group definitions are absent from the typed models and wrappers, so the whole surface is unreachable through ATProtoBlueskyChat: typed quote-reply on sendMessage is impossible, an incoming reply's parent is silently dropped on decode (no field-level .unknown fallback), a group is indistinguishable from a 1:1 DM with its metadata unreachable, and the group / lock endpoints require raw XRPC that re-implements the api.bsky.chat host routing / auth ATProtoBlueskyChat already provides. See Additional Context for the specific undefined types, fields, and wrappers.

Considered Alternatives

Raw XRPC for the entire chat surface (loses typed pipeline and the isRelatedToBskyChat host routing) — only viable per-client and brittle.

Is this a breaking change?

No

Library Examples

N/A

Additional Context
Missing types
Lexicon Suggested type
chat.bsky.convo.defs#replyRef ReplyReferenceDefinition — messageID: String (messageId)
chat.bsky.convo.defs#messageBeforeUserJoinedGroupView MessageBeforeUserJoinedGroupViewDefinition — per lexicon
chat.bsky.convo.defs#groupConvo GroupConvoDefinition — name: String?, createdAt: Date, lockStatus: String, lockStatusModerationOverride: String?, memberCount: Int, memberLimit: Int, joinLink: String?, joinRequestCount: Int, unreadJoinRequestCount: Int
Missing fields on existing types
Lexicon Suggested field
chat.bsky.convo.defs#messageInput replyTo: ReplyReferenceDefinition?
chat.bsky.convo.defs#messageView replyTo: ReplyToUnion? (messageView | deletedMessageView | messageBeforeUserJoinedGroupView)
chat.bsky.convo.defs#convoView kind: KindUnion? (groupConvo)
Missing wrappers
Lexicon Suggested method
chat.bsky.convo.getConvoMembers getConversationMembers(from:limit:cursor:)
chat.bsky.convo.listConvoRequests listConversationRequests(limit:cursor:)
chat.bsky.convo.lockConvo lockConversation(by:)
chat.bsky.convo.unlockConvo unlockConversation(by:)

All four sit on api.bsky.chat, mirror the existing acceptConvo / muteConvo shape, and require isRelatedToBskyChat: true routing.

References
Ngôn ngữ chính
Swift
Star
226
Fork
40
Merge trung bình
5 giờ 8 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MasterJ93/ATProtoKit

Tất cả issue của MasterJ93/ATProtoKit

Issue tương tự

Thêm issue về Swift

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.