Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3363049
D11870.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11870.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11870: [lib] Stop shimming SIDEBAR_SOURCE when keyserver can't load source message
Attached
Detach File
Event Timeline
Log In to Comment