EventIndex: Live events can be unencrypted as well.
parent
d30c46a641
commit
4f63b10465
|
@ -170,7 +170,12 @@ export default class EventIndex {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const e = ev.toJSON().decrypted;
|
const jsonEvent = ev.toJSON();
|
||||||
|
|
||||||
|
let e;
|
||||||
|
if (ev.isEncrypted()) e = jsonEvent.decrypted;
|
||||||
|
else e = jsonEvent;
|
||||||
|
|
||||||
const profile = {
|
const profile = {
|
||||||
displayname: ev.sender.rawDisplayName,
|
displayname: ev.sender.rawDisplayName,
|
||||||
avatar_url: ev.sender.getMxcAvatarUrl(),
|
avatar_url: ev.sender.getMxcAvatarUrl(),
|
||||||
|
|
Loading…
Reference in New Issue