spacebarchat / server

Spacebar server - A reimplementation of the Discord.com backend, built with Typescript and love
https://spacebar.chat
GNU Affero General Public License v3.0
1.47k stars 252 forks source link

Lazy Request (opcode 14) ordering fix #1198

Closed DEVTomatoCake closed 2 months ago

DEVTomatoCake commented 2 months ago
  1. Fixes missing session (due to user being offline) or session status invisible being ignored when sorting members
  2. Fixes sort order to properly sort 1. by status, 2. by role position, 3. by username
  3. Removes TODO comment about typeorm .find() queries supporting ordering. This is supported now, however it's not possible to add custom select statements which would require the application to handle the ordering instead of the DB, which would require the limit in the query to be removed which wastes bandwidth.