feat(chat): on web, group messages by sender

This commit is contained in:
Leonard Kim
2019-05-09 07:06:27 -07:00
committed by virtuacoplenny
parent f5ac18da18
commit fb5a45f714
5 changed files with 178 additions and 87 deletions
@@ -19,6 +19,12 @@ export type Props = {
*/
message: Object,
/**
* Whether or not the name of the participant which sent the message should
* be displayed.
*/
showDisplayName: boolean,
/**
* Invoked to receive translated strings.
*/
@@ -28,7 +34,11 @@ export type Props = {
/**
* Abstract component to display a chat message.
*/
export default class AbstractChatMessage<P: Props> extends PureComponent<P> {}
export default class AbstractChatMessage<P: Props> extends PureComponent<P> {
static defaultProps = {
showDisplayName: true
};
}
/**
* Maps part of the Redux state to the props of this component.