orbis.getConversation()

Returns the details of a conversation.

How to use?

let { data, error } = await orbis.getConversation(conversation_id);

Parameters

  • conversation_id: ID of the conversation

Returns

{
	stream_id: "k...",
	recipients: [
		"did:pkh:eip155:1:0x075286d1a22b083ebcaf6b7fb4cf970cfc4a18f0",
		"did:pkh:eip155:1:0x222bc13f54b2f14e41945c9f2f3b9f00b4ec9b40"
	],
	recipient_details: [
		{
			did: "did:pkh:eip155:1:0x01",
			profile: {
				pfp: "https://arweave.net/...",
				username: "Baptiste",
				description: "Testing on mainnet!"
			}
		}, {
			did: "did:pkh:eip155:1:0x02",
			profile: {
				pfp: "https://arweave.net/...",
				username: "OrbisTester",
				description: "Just testing around!"
			}
		}
	],
	last_message_timestamp: 1656580635
}