[FEAT]: Server: delete a conversation for me / for everyone

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

Maintainer thường phản hồi trong vòng 1 ngày

@mrsumanbiswas đang làm issue này rồi.

Từ ngày 9/7/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

area: server difficulty: medium enhancement

Part of #30.

What to do

  • For me: store a per-user "cleared at" time per conversation (new migration, e.g. conversation_clears(user_id, peer_id, group_id, cleared_at)). History and the conversation list skip messages older than it, for that user only.
  • For everyone: DELETE that removes the caller's own messages in a direct conversation (agree the exact rule in #30 first).
  • Groups: admin-only DELETE /api/groups/{id}.
  • Send a WebSocket event so the other person's app can update.
  • Document the endpoints in docs/API_CONTRACTS.md.

Where to look

server/routes/messages.go, server/routes/groups.go, server/repository/message.go (GetChatHistory, GetConversations), server/migrations/, server/middlewares (GroupAdminGuard).

Ngôn ngữ chính
Dart
Star
9
Fork
5
Merge trung bình
49 phút
Pull request đã merge (30 ngày)
34

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

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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 CommandLineCoding/Elephant

Tất cả issue của CommandLineCoding/Elephant

Issue tương tự

Thêm issue về Dart

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.