Add configuration to disable relative date markers in timeline (#7405)
* add disabler elative dates setting Signed-off-by: Kerry Archibald <kerrya@element.io> * test existing DateSeparator Signed-off-by: Kerry Archibald <kerrya@element.io> * use full date format when TimelineDisableRelativeDates is truthy Signed-off-by: Kerry Archibald <kerrya@element.io> * add comment Signed-off-by: Kerry Archibald <kerrya@element.io> * flip timelineDisableRelativeDates -> timelineEnableRelativeDates to fit convention Signed-off-by: Kerry Archibald <kerrya@element.io> * mock date constructor in test Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
parent
b90a0c443d
commit
61e3c38b19
6 changed files with 142 additions and 4 deletions
|
@ -19,7 +19,6 @@ components['structures.RoomDirectory'] = stubComponent();
|
|||
components['views.globals.GuestWarningBar'] = stubComponent();
|
||||
components['views.globals.NewVersionBar'] = stubComponent();
|
||||
components['views.elements.Spinner'] = stubComponent({ displayName: 'Spinner' });
|
||||
components['views.messages.DateSeparator'] = stubComponent({ displayName: 'DateSeparator' });
|
||||
components['views.messages.MessageTimestamp'] = stubComponent({ displayName: 'MessageTimestamp' });
|
||||
components['views.messages.SenderProfile'] = stubComponent({ displayName: 'SenderProfile' });
|
||||
components['views.rooms.SearchBar'] = stubComponent();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue