element-web/src/components/views/messages
Richard van der Hoff 96567dad0d Fix NPE when we don't know the sender of an event
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.
2016-08-25 16:55:09 +01:00
..
MAudioBody.js merge aviral's audio player 2016-04-13 00:00:24 +01:00
MessageEvent.js Fix NPE when we don't know the sender of an event 2016-08-25 16:55:09 +01:00
MFileBody.js add rel='noopener' wherever we do target='_blank' because https://mathiasbynens.github.io/rel-noopener/ 2016-08-15 21:37:26 +01:00
MImageBody.js add rel='noopener' wherever we do target='_blank' because https://mathiasbynens.github.io/rel-noopener/ 2016-08-15 21:37:26 +01:00
MVideoBody.js Fix enourmous video bug 2016-07-20 11:58:49 +01:00
SenderProfile.js reskindex and use sdk.getComponent for EmojiText 2016-08-11 07:55:12 +05:30
TextualBody.js reskindex and use sdk.getComponent for EmojiText 2016-08-11 07:55:12 +05:30
TextualEvent.js Fix NPE when we don't know the sender of an event 2016-08-25 16:55:09 +01:00
UnknownBody.js update copyright for 2016 2016-01-07 04:06:52 +00:00