Skip to content

Conversation

@smf-h
Copy link
Owner

@smf-h smf-h commented Dec 26, 2025

Summary:

  • Add @EnableScheduling and WsCron to resend pending messages (SAVED/DROPPED) to online users, update status to DELIVERED on success
  • Handle receiver ACK in service (DELIVERED/READ; RECEIVED mapped to DELIVERED); persist to t_message_ack and advance t_message.status
  • After AUTH_OK, deliverPendingForUser asynchronously
  • Refactor WsFrameHandler: delegate to ChatDeliveryService; avoid eventLoop blocking
  • Align AckType mapping with DB (1 SAVED, 2 DELIVERED, 3 READ)

Notes:

  • ChatType.desc kept for envelope type mapping; DB uses @EnumValue code
  • Further refactor: move SINGLE_CHAT business fully into service; group chat and friend apply to follow

smf-h added 30 commits December 26, 2025 15:46
…service; align AckType mapping and login deliverPending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants