Fix base64 encoded string

This commit is contained in:
Thomas Nordquist
2019-04-03 01:36:52 +02:00
parent 5caa3564d1
commit 84a92ad522
4 changed files with 7 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ import { Theme, withStyles } from '@material-ui/core/styles'
interface HistoryItem {
title: JSX.Element | string
value: string | any
value: string
selected?: boolean
}

View File

@@ -53,7 +53,7 @@ class MessageHistory extends React.Component<Props, State> {
const history = node.messageHistory.toArray()
const historyElements = history.reverse().map(message => ({
title: <DateFormatter date={message.received} />,
value: message.value,
value: message.value ? Base64Message.toUnicodeString(message.value) : '',
selected: message && message === this.props.selected,
}))