mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 07:36:00 +01:00
Add pinned message chat event
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user