Expressions http status typo 400 -> 500

This commit is contained in:
Cadence Ember
2026-07-20 18:32:00 +12:00
parent c982ca0bb6
commit ed0bddaae0
+1 -1
View File
@@ -239,7 +239,7 @@ async function syncSpaceExpressions(data, checkBeforeSync) {
try {
existing = await api.getStateEvent(spaceID, "im.ponies.room_emotes", eventKey)
} catch (e) {
if (e instanceof mreq.MatrixServerError && e.httpStatus < 400) {
if (e instanceof mreq.MatrixServerError && e.httpStatus < 500) {
// State event not found. This space doesn't have any existing emojis. We create a dummy empty event for comparison's sake.
existing = fn([], guild)
} else {