mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 16:21:36 +03:00
96567dad0d
Fixes a bug introduced in https://github.com/matrix-org/matrix-react-sdk/pull/426. Particularly when we are showing search results, we may not recognise the sender of an event; attempting to create a MemberAvatar for it will lead to null-reference errors. Also a bit of untangling of the logic of needsSenderProfile. Since https://github.com/matrix-org/matrix-react-sdk/pull/422, EventTileType.needsSenderProfile was only being called on MessageEvents, and therefore only returned true. It's a shame to see all this logic going into EventTile rather than the individual EventTileTypes, but since it's there, let's not leave the unused logic lying around in the EventTileType implementations. |
||
---|---|---|
.. | ||
MAudioBody.js | ||
MessageEvent.js | ||
MFileBody.js | ||
MImageBody.js | ||
MVideoBody.js | ||
SenderProfile.js | ||
TextualBody.js | ||
TextualEvent.js | ||
UnknownBody.js |