Hook up TimelineCallEventStore and add Avatar

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-05-30 12:42:23 +02:00
parent 320ceb5036
commit 4ae92d8adc
No known key found for this signature in database
GPG key ID: 9760693FDD98A790
3 changed files with 60 additions and 11 deletions

View file

@ -26,6 +26,7 @@ import * as sdk from '../../index';
import {MatrixClientPeg} from '../../MatrixClientPeg';
import SettingsStore from '../../settings/SettingsStore';
import TimelineCallEventStore from "../../stores/TimelineCallEventStore";
import {Layout, LayoutPropType} from "../../settings/Layout";
import {_t} from "../../languageHandler";
import {haveTileForEvent} from "../views/rooms/EventTile";
@ -529,6 +530,8 @@ export default class MessagePanel extends React.Component {
const last = (mxEv === lastShownEvent);
const {nextEvent, nextTile} = this._getNextEventInfo(this.props.events, i);
TimelineCallEventStore.instance.addEvent(mxEv);
if (grouper) {
if (grouper.shouldGroup(mxEv)) {
grouper.add(mxEv);