Conversations
Conversation-level actions. Like sending messages, these need a loaded identity and take a recipient as a user id, @handle, or { id }.
client.xchat.pin(recipient) / client.xchat.unpin(recipient)
Pin or unpin a conversation. Pin state syncs across your own devices.
js
await client.xchat.pin("44196397");
await client.xchat.unpin("44196397");client.xchat.setNickname(recipient, nickname, opts?)
Set a per-conversation nickname. By default it names the recipient; pass opts.userId to nickname a specific participant.
js
await client.xchat.setNickname("44196397", "the boss");client.xchat.reportScreenCapture(recipient, opts?)
Send the "screenshot detected" notice the official app sends when you screenshot a chat. opts.recording: true reports a screen recording instead.
js
await client.xchat.reportScreenCapture("44196397");Idk why you'd need this but it's here.