Move link notification to the conversation hero
This commit is contained in:
parent
5f3a62cbb6
commit
2f44e33c9c
26 changed files with 174 additions and 350 deletions
|
@ -40,24 +40,6 @@ describe('<Timeline> utilities', () => {
|
|||
assert.isFalse(areMessagesInSameGroup(undefined, false, defaultNewer));
|
||||
});
|
||||
|
||||
it('returns false if either item is not a message', () => {
|
||||
const linkNotification = {
|
||||
type: 'linkNotification' as const,
|
||||
data: null,
|
||||
timestamp: Date.now(),
|
||||
};
|
||||
|
||||
assert.isFalse(
|
||||
areMessagesInSameGroup(defaultNewer, false, linkNotification)
|
||||
);
|
||||
assert.isFalse(
|
||||
areMessagesInSameGroup(linkNotification, false, defaultNewer)
|
||||
);
|
||||
assert.isFalse(
|
||||
areMessagesInSameGroup(linkNotification, false, linkNotification)
|
||||
);
|
||||
});
|
||||
|
||||
it("returns false if authors don't match", () => {
|
||||
const older = {
|
||||
...defaultOlder,
|
||||
|
@ -155,18 +137,6 @@ describe('<Timeline> utilities', () => {
|
|||
);
|
||||
});
|
||||
|
||||
it('returns false if newer item is not a message', () => {
|
||||
const linkNotification = {
|
||||
type: 'linkNotification' as const,
|
||||
data: null,
|
||||
timestamp: Date.now(),
|
||||
};
|
||||
|
||||
assert.isFalse(
|
||||
shouldCurrentMessageHideMetadata(true, defaultCurrent, linkNotification)
|
||||
);
|
||||
});
|
||||
|
||||
it('returns false if newer is deletedForEveryone', () => {
|
||||
const newer = {
|
||||
...defaultNewer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue