mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Fix today for translated date break (#1915)
* add using timestamp offset from network for sending part1 * remove MessageController as we now rely on the database * fix tests for message sending overriding timestamp * Fixs date break translations of today etc Relates #1913
This commit is contained in:
parent
b45109985c
commit
525f9dcfb2
|
@ -18,11 +18,6 @@ const DateBreakText = styled.div`
|
|||
export const MessageDateBreak = (props: { timestamp: number; messageId: string }) => {
|
||||
const { timestamp, messageId } = props;
|
||||
const text = moment(timestamp).calendar(undefined, {
|
||||
lastDay: '[Yesterday at] LT',
|
||||
sameDay: '[Today at] LT',
|
||||
nextDay: '[Tomorrow at] LT',
|
||||
lastWeek: '[last] dddd [at] LT',
|
||||
nextWeek: 'dddd [at] LT',
|
||||
sameElse: 'llll',
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue