fix reactions with empty content appears in timeline
This commit is contained in:
parent
69bc5eab70
commit
47ac3cb762
1 changed files with 8 additions and 4 deletions
|
|
@ -70,12 +70,16 @@ export class RelationsProcessor implements Disposable {
|
|||
editEvents.push(event);
|
||||
}
|
||||
|
||||
// Handle reactions events
|
||||
if (event.type === MessageEvent.Reaction) {
|
||||
if (relation(event)) {
|
||||
reactionEvents.push(event);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle relation events
|
||||
if (relation(event)) {
|
||||
if (event.type === MessageEvent.Reaction) {
|
||||
reactionEvents.push(event);
|
||||
return;
|
||||
}
|
||||
if (replacement(event)) {
|
||||
editEvents.push(event);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue