You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-12-01 09:58:03 +03:00
Merge pull request #4131 from matrix-org/travis/grouper-empty
Don't try to collapse zero events with a group
This commit is contained in:
@@ -873,6 +873,11 @@ class CreationGrouper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getTiles() {
|
getTiles() {
|
||||||
|
// If we don't have any events to group, don't even try to group them. The logic
|
||||||
|
// below assumes that we have a group of events to deal with, but we might not if
|
||||||
|
// the events we were supposed to group were redacted.
|
||||||
|
if (!this.events || !this.events.length) return [];
|
||||||
|
|
||||||
const DateSeparator = sdk.getComponent('messages.DateSeparator');
|
const DateSeparator = sdk.getComponent('messages.DateSeparator');
|
||||||
const EventListSummary = sdk.getComponent('views.elements.EventListSummary');
|
const EventListSummary = sdk.getComponent('views.elements.EventListSummary');
|
||||||
|
|
||||||
@@ -959,6 +964,11 @@ class MemberGrouper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getTiles() {
|
getTiles() {
|
||||||
|
// If we don't have any events to group, don't even try to group them. The logic
|
||||||
|
// below assumes that we have a group of events to deal with, but we might not if
|
||||||
|
// the events we were supposed to group were redacted.
|
||||||
|
if (!this.events || !this.events.length) return [];
|
||||||
|
|
||||||
const DateSeparator = sdk.getComponent('messages.DateSeparator');
|
const DateSeparator = sdk.getComponent('messages.DateSeparator');
|
||||||
const MemberEventListSummary = sdk.getComponent('views.elements.MemberEventListSummary');
|
const MemberEventListSummary = sdk.getComponent('views.elements.MemberEventListSummary');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user