ref(chat): on native, show messages as grouped by sender
This commit is contained in:
committed by
virtuacoplenny
parent
34dffbfc5e
commit
7187e540a8
@@ -19,12 +19,24 @@ export type Props = {
|
||||
*/
|
||||
message: Object,
|
||||
|
||||
/**
|
||||
* Whether or not the avatar image of the participant which sent the message
|
||||
* should be displayed.
|
||||
*/
|
||||
showAvatar: boolean,
|
||||
|
||||
/**
|
||||
* Whether or not the name of the participant which sent the message should
|
||||
* be displayed.
|
||||
*/
|
||||
showDisplayName: boolean,
|
||||
|
||||
/**
|
||||
* Whether or not the time at which the message was sent should be
|
||||
* displayed.
|
||||
*/
|
||||
showTimestamp: boolean,
|
||||
|
||||
/**
|
||||
* Invoked to receive translated strings.
|
||||
*/
|
||||
@@ -36,7 +48,9 @@ export type Props = {
|
||||
*/
|
||||
export default class AbstractChatMessage<P: Props> extends PureComponent<P> {
|
||||
static defaultProps = {
|
||||
showDisplayName: true
|
||||
showAvatar: false,
|
||||
showDisplayName: false,
|
||||
showTimestamp: false
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user