Skip to content

Commit 16e37a3

Browse files
committed
Don't include blank opentracing stuff in device list updates
Signed-off-by: Aaron Raimist <[email protected]>
1 parent 5a40871 commit 16e37a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

synapse/storage/databases/main/devices.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,11 @@ async def _get_device_update_edus_by_remote(
326326
"device_id": device_id,
327327
"prev_id": [prev_id] if prev_id else [],
328328
"stream_id": stream_id,
329-
"org.matrix.opentracing_context": opentracing_context,
330329
}
331330

331+
if opentracing_context != "{}":
332+
result["org.matrix.opentracing_context"] = opentracing_context
333+
332334
prev_id = stream_id
333335

334336
if device is not None:

0 commit comments

Comments
 (0)