Fix get_profile_data_for_users if user does not have custom fields

This commit is contained in:
Jason Robinson
2026-06-02 21:36:00 +03:00
parent e236ddb32b
commit 1ae91c87d0
+1 -1
View File
@@ -455,7 +455,7 @@ class ProfileWorkerStore(SQLBaseStore):
results: dict[str, dict[str, str | JsonDict | None]] = {}
for full_user_id, displayname, avatar_url, fields in rows:
user_fields = fields
user_fields = fields or {}
# The SQLite driver doesn't automatically convert JSON to
# Python objects
if isinstance(self.database_engine, Sqlite3Engine) and fields: