mirror of https://github.com/vector-im/riot-web
EventIndex: Fix a small style issue.
parent
c3418df919
commit
ecfecfe559
|
@ -172,7 +172,7 @@ export default class EventIndex {
|
|||
}
|
||||
|
||||
const jsonEvent = ev.toJSON();
|
||||
const e = ev.isEncrypted() ? jsonEvent.decrypted: jsonEvent;
|
||||
const e = ev.isEncrypted() ? jsonEvent.decrypted : jsonEvent;
|
||||
|
||||
const profile = {
|
||||
displayname: ev.sender.rawDisplayName,
|
||||
|
@ -308,7 +308,7 @@ export default class EventIndex {
|
|||
// consume.
|
||||
const events = filteredEvents.map((ev) => {
|
||||
const jsonEvent = ev.toJSON();
|
||||
const e = ev.isEncrypted() ? jsonEvent.decrypted: jsonEvent;
|
||||
const e = ev.isEncrypted() ? jsonEvent.decrypted : jsonEvent;
|
||||
|
||||
let profile = {};
|
||||
if (e.sender in profiles) profile = profiles[e.sender];
|
||||
|
|
Loading…
Reference in New Issue