mirror of
https://git.sr.ht/~emerson/reflectionircd
synced 2025-08-05 16:59:10 +00:00
call getDirectMessages on initial sync and every time a new channel is made
This commit is contained in:
parent
63bf00394d
commit
52ddd1cfd9
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,7 @@ export class Server {
|
|||
this.ourMatrixUser = this.getOrCreateMatrixUser(this.mxid);
|
||||
this.apiCall.get("/account/whoami").then(r => {
|
||||
this.doLog("Authentication successful, starting initial sync");
|
||||
this.getDirectMessages();
|
||||
this.doSync();
|
||||
}).catch(e => {
|
||||
console.log(e);
|
||||
|
@ -111,6 +112,7 @@ export class Server {
|
|||
if (maybeChannel)
|
||||
return maybeChannel;
|
||||
|
||||
this.getDirectMessages();
|
||||
const newChannel = new Channel(roomId, this);
|
||||
this.syncLocks.add(newChannel);
|
||||
this.roomIdToChannel.set(roomId, newChannel);
|
||||
|
|
Loading…
Add table
Reference in a new issue