Skip to content

Add chat lobby history retrieval protocol - #274

Open
jolavillette wants to merge 2 commits into
RetroShare:masterfrom
jolavillette:RetrieveChatHistoryFromFriends
Open

Add chat lobby history retrieval protocol#274
jolavillette wants to merge 2 commits into
RetroShare:masterfrom
jolavillette:RetrieveChatHistoryFromFriends

Conversation

@jolavillette

Copy link
Copy Markdown
Contributor

Add chat lobby history retrieval protocol

Implement a 4-step pull protocol allowing users to fetch chat history from friends participating in the same lobby:

  • Probe: ask connected friends if they have history available
  • ProbeResponse: peer replies with message count and oldest timestamp
  • Request: request messages from a specific peer (with max count/age)
  • Data: peer sends historical messages, chunked to stay under 128KB

New serialization items (0x20–0x23) in rschatitems.

Handlers in distributedchat.cc route, validate, and process each step.

Received history is deduplicated against local DB before merging via

p3HistoryMgr::addMessage(). Nickname fallback added for null GXS IDs.

New public API: requestLobbyHistory(), requestLobbyHistoryFromPeer()

New events: CHAT_LOBBY_EVENT_HISTORY_PROBE_RESPONSE, CHAT_LOBBY_EVENT_HISTORY_DATA

@jolavillette
jolavillette force-pushed the RetrieveChatHistoryFromFriends branch from 3193a14 to b91cfab Compare March 9, 2026 03:57
@jolavillette
jolavillette force-pushed the RetrieveChatHistoryFromFriends branch from 0941f41 to 85a5c64 Compare March 18, 2026 01:21
@jolavillette
jolavillette force-pushed the RetrieveChatHistoryFromFriends branch from 85a5c64 to ca1a3a2 Compare April 2, 2026 03:45
@jolavillette
jolavillette force-pushed the RetrieveChatHistoryFromFriends branch 2 times, most recently from 9603f0e to 84df8bc Compare April 21, 2026 01:46
@jolavillette
jolavillette force-pushed the RetrieveChatHistoryFromFriends branch from 84df8bc to 2c3f9be Compare May 17, 2026 00:50
@jolavillette
jolavillette force-pushed the RetrieveChatHistoryFromFriends branch 2 times, most recently from 0e7b037 to d7cc39f Compare May 25, 2026 08:13
@jolavillette
jolavillette force-pushed the RetrieveChatHistoryFromFriends branch 3 times, most recently from 1f888ac to 0b89402 Compare June 7, 2026 12:42
@jolavillette
jolavillette force-pushed the RetrieveChatHistoryFromFriends branch 3 times, most recently from 9b22298 to bebcd94 Compare June 16, 2026 21:15
@jolavillette
jolavillette force-pushed the RetrieveChatHistoryFromFriends branch 4 times, most recently from 7a8eb2d to 6944b4b Compare July 8, 2026 20:10
@jolavillette
jolavillette force-pushed the RetrieveChatHistoryFromFriends branch 4 times, most recently from a8be9a1 to 7d612d8 Compare July 24, 2026 10:45
@jolavillette
jolavillette force-pushed the RetrieveChatHistoryFromFriends branch 4 times, most recently from b05d362 to 5a519f8 Compare July 31, 2026 20:10
@jolavillette
jolavillette force-pushed the RetrieveChatHistoryFromFriends branch 4 times, most recently from 1aad640 to cdf066b Compare August 4, 2026 18:29
@jolavillette
jolavillette force-pushed the RetrieveChatHistoryFromFriends branch from cdf066b to 1af700b Compare August 6, 2026 23:16
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.

1 participant