We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bf7974f + 4abc1fa commit 6d062a8Copy full SHA for 6d062a8
sogs/legacy_routes.py
@@ -214,7 +214,15 @@ def handle_comapct_poll():
214
try:
215
r = handle_one_compact_poll(req)
216
except HTTPException as e:
217
- r = {'status_code': e.get_response().status_code, 'results': []}
+ # Hack for Session: if there isn't a full fleshed out response then Session just ignores
218
+ # the response (even when it's an error response), so we send this fake response:
219
+ r = {
220
+ 'status_code': e.get_response().status_code,
221
+ 'room_id': req.get('room_id', ''),
222
+ 'messages': [],
223
+ 'deletions': [],
224
+ 'moderators': [],
225
+ }
226
result.append(r)
227
228
return jsonify({'status_code': 200, 'results': result})
0 commit comments