Skip to content

Commit

Permalink
feat: make sure direct messages appear in direct message spot.
Browse files Browse the repository at this point in the history
  • Loading branch information
zicklag committed Dec 29, 2024
1 parent 91c9a97 commit f80e138
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/matrix-shim/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export class MatrixDataWrapper {
membership: 'join',
displayname: member.displayname,
avatar_url: member.avatar_url,
is_direct: room.direct,
},
origin_server_ts: room.createdAt,
sender: member.id,
Expand Down
2 changes: 1 addition & 1 deletion src/matrix-shim/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ export class MatrixShim {
}

return {
account_data: this.data.accountDataDirect(this.oauthSession!.did),
account_data: { events: [this.data.accountDataDirect(this.oauthSession!.did)] },
next_batch: Date.now().toString(),
rooms,
};
Expand Down

0 comments on commit f80e138

Please sign in to comment.