Page MenuHomePhabricator

D11870.diff
No OneTemporary

D11870.diff

diff --git a/lib/shared/messages/sidebar-source-message-spec.js b/lib/shared/messages/sidebar-source-message-spec.js
--- a/lib/shared/messages/sidebar-source-message-spec.js
+++ b/lib/shared/messages/sidebar-source-message-spec.js
@@ -17,7 +17,6 @@
type ClientDBMessageInfo,
rawSidebarSourceMessageInfoValidator,
} from '../../types/message-types.js';
-import type { RawUnsupportedMessageInfo } from '../../types/messages/unsupported.js';
import type { NotifTexts } from '../../types/notif-types.js';
import type { RelativeUserInfo } from '../../types/user-types.js';
import { isInvalidSidebarSource } from '../message-utils.js';
@@ -131,32 +130,6 @@
return { ...messageData, id };
},
- shimUnsupportedMessageInfo(
- rawMessageInfo: RawSidebarSourceMessageInfo,
- ): RawSidebarSourceMessageInfo | RawUnsupportedMessageInfo {
- if (rawMessageInfo.sourceMessage) {
- return rawMessageInfo;
- }
- const { id } = rawMessageInfo;
- invariant(id !== null && id !== undefined, 'id should be set on server');
- return {
- type: messageTypes.UNSUPPORTED,
- id,
- threadID: rawMessageInfo.threadID,
- creatorID: rawMessageInfo.creatorID,
- time: rawMessageInfo.time,
- robotext: 'first message in thread',
- dontPrefixCreator: true,
- unsupportedMessageInfo: rawMessageInfo,
- };
- },
-
- unshimMessageInfo(
- unwrapped: RawSidebarSourceMessageInfo,
- ): RawSidebarSourceMessageInfo {
- return unwrapped;
- },
-
notificationTexts(): Promise<NotifTexts> {
invariant(
false,

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 11:49 PM (13 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2581718
Default Alt Text
D11870.diff (1 KB)

Event Timeline