feat: update ShareE2EEHistory command description to clarify limitations

This commit is contained in:
Rye committed 2026-03-16 15:48:55 +01:00
1 parent c92c8181e8
commit d2a05f280e
1 file changed
+6 -2
+6 -2
View File
@@ -1182,7 +1182,7 @@ export const useCommands = (mx: MatrixClient, room: Room): CommandRecord => {
[Command.ShareE2EEHistory]: {
name: Command.ShareE2EEHistory,
description:
'Share E2EE history of this room with a user. Example: /sharee2eehistory @user:example.org',
'Share E2EE history (MSC4268) of this room with a user. Example: /sharee2eehistory @user:example.org',
exe: async (payload) => {
const targetUserId = payload.trim();
const { roomId } = room;
@@ -1197,7 +1197,11 @@ export const useCommands = (mx: MatrixClient, room: Room): CommandRecord => {
}
try {
await crypto.shareRoomHistoryWithUser(roomId, targetUserId);
sendFeedback(`E2EE history shared with ${targetUserId}.`, room, mx.getSafeUserId());
sendFeedback(
`E2EE history shared with ${targetUserId}. (Their client needs to support MSC4268)`,
room,
mx.getSafeUserId()
);
} catch (e: any) {
sendFeedback(`Failed to share E2EE history: ${e.message}`, room, mx.getSafeUserId());
}