There is an issue with the recently introduced canBeRenderedIndependently code in message specs where I didn't properly account for message specs that do not define this property since its optional.
Right now:
- if canBeRenderedIndependently is true, then isUnableToBeRenderedIndependently returns false (0 cases)
- if canBeRenderedIndependently is false, then isUnableToBeRenderedIndependently returns true (2 cases --> edit-message-spec and reaction-message-spec)
- if canBeRenderedIndependently is undefined, then isUnableToBeRenderedIndependently returns true` (all other cases, i.e. text-message-spec)
This causes a problem since we skip rendering TEXT messages and MULTIMEDIA messages in the pinned messages modal
This diff changes the check so that now:
- if canBeRenderedIndependently is true, then isUnableToBeRenderedIndependently returns false (0 cases)
- if canBeRenderedIndependently is false, then isUnableToBeRenderedIndependently returns true (2 cases --> edit-message-spec and reaction-message-spec)
- if canBeRenderedIndependently is undefined, then isUnableToBeRenderedIndependently returns false` (all other cases, i.e. text-message-spec)
We now only class a message as being unable to rendered independently if its message spec explicitly defines it as false