Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
  • Loading branch information
t3chguy committed Nov 8, 2024
1 parent e4d5e6b commit f10deb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/embedded.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ export class RoomWidgetClient extends MatrixClient {
const events = rawEvents.map((rawEvent) => new MatrixEvent(rawEvent as Partial<IEvent>));

if (this.syncApi instanceof SyncApi) {
await this.syncApi.injectRoomEvents(this.room!, undefined, events, []);
await this.syncApi.injectRoomEvents(this.room!, undefined, events);
} else {
await this.syncApi!.injectRoomEvents(this.room!, events, []);
await this.syncApi!.injectRoomEvents(this.room!, events);
}
events.forEach((event) => {
this.emit(ClientEvent.Event, event);
Expand Down
2 changes: 1 addition & 1 deletion src/models/room-member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export class RoomMember extends TypedEventEmitter<RoomMemberEvent, RoomMemberEve
this.events.member = event;

const oldMembership = this.membership;
this.membership = event.getDirectionalContent().membership; // XXX debug?
this.membership = event.getDirectionalContent().membership;
if (this.membership === undefined) {
// logging to diagnose https://github.com/vector-im/element-web/issues/20962
// (logs event content, although only of membership events)
Expand Down

0 comments on commit f10deb5

Please sign in to comment.