diff --git a/lib/shared/message-utils.test.js b/lib/shared/message-utils.test.js --- a/lib/shared/message-utils.test.js +++ b/lib/shared/message-utils.test.js @@ -729,4 +729,22 @@ expect(shouldBeInvalidPinSource).toBe(true); expect(canBePinned).toBe(false); }); + + describe('canBeRenderedOnItsOwn', () => { + it('should return false for RawReactionMessageInfo', () => { + const messageSpec = messageSpecs[messageTypes.REACTION]; + + const canBeRenderedOnItsOwn = messageSpec.canBeRenderedOnItsOwn; + + expect(canBeRenderedOnItsOwn).toBe(false); + }); + + it('should return false for RawEditMessageInfo', () => { + const messageSpec = messageSpecs[messageTypes.EDIT_MESSAGE]; + + const canBeRenderedOnItsOwn = messageSpec.canBeRenderedOnItsOwn; + + expect(canBeRenderedOnItsOwn).toBe(false); + }); + }); }); diff --git a/lib/shared/messages/edit-message-spec.js b/lib/shared/messages/edit-message-spec.js --- a/lib/shared/messages/edit-message-spec.js +++ b/lib/shared/messages/edit-message-spec.js @@ -144,5 +144,7 @@ canBePinned: false, + canBeRenderedOnItsOwn: false, + validator: rawEditMessageInfoValidator, }); diff --git a/lib/shared/messages/message-spec.js b/lib/shared/messages/message-spec.js --- a/lib/shared/messages/message-spec.js +++ b/lib/shared/messages/message-spec.js @@ -115,6 +115,7 @@ +includedInRepliesCount?: boolean, +canBeSidebarSource: boolean, +canBePinned: boolean, + +canBeRenderedOnItsOwn?: boolean, +useCreationSideEffectsFunc?: () => CreationSideEffectsFunc, +validator: TType, }; diff --git a/lib/shared/messages/reaction-message-spec.js b/lib/shared/messages/reaction-message-spec.js --- a/lib/shared/messages/reaction-message-spec.js +++ b/lib/shared/messages/reaction-message-spec.js @@ -222,5 +222,7 @@ canBePinned: false, + canBeRenderedOnItsOwn: false, + validator: rawReactionMessageInfoValidator, });