Add pinned message chat event

This commit is contained in:
Jamie
2025-11-17 12:44:14 -08:00
committed by GitHub
parent 1d8242bba6
commit 5bde700d4c
16 changed files with 208 additions and 4 deletions

View File

@@ -92,6 +92,7 @@ import {
isJoinedSignalNotification,
isTitleTransitionNotification,
isMessageRequestResponse,
isPinnedMessageNotification,
} from '../../state/selectors/message.preload.js';
import * as Bytes from '../../Bytes.std.js';
import { canBeSynced as canPreferredReactionEmojiBeSynced } from '../../reactions/preferredReactionEmoji.std.js';
@@ -1830,6 +1831,10 @@ export class BackupExportStream extends Readable {
return { kind: NonBubbleResultKind.Directionless, patch };
}
if (isPinnedMessageNotification(message)) {
throw new Error('unimplemented');
}
if (isProfileChange(message)) {
const profileChange = new Backups.ProfileChangeChatUpdate();
if (!message.profileChange?.newName || !message.profileChange?.oldName) {