matrix-org / matrix-appservice-irc

Node.js IRC bridge for Matrix
Apache License 2.0
460 stars 151 forks source link

RoomAccessSyncer: Await processing of cached channel modes that changed. #1620

Closed jaller94 closed 1 year ago

jaller94 commented 1 year ago

promises.concat() does not mutate the array, so possible this.onMode() promises are not awaited by Promise.all().

Relevant code

https://github.com/matrix-org/matrix-appservice-irc/blob/ed0d64767db7fc7720d316326673e7c99f7947cf/src/bridge/RoomAccessSyncer.ts#L350-L364