Added check boxes for bot, private and discoverable

This commit is contained in:
Abdulqadir Ahmad
2023-06-09 14:38:22 +01:00
parent 6d7f808196
commit f5815d7911
2 changed files with 44 additions and 36 deletions

View File

@@ -268,6 +268,10 @@ class Handler(object):
'header': profile.header,
'avatar': profile.avatar,
'fields': [(field.name, html_filter(field.value)) for field in profile.fields],
'locked': profile.locked,
'bot': profile.bot,
# discoverable could be None, set it to False
'discoverable': profile.discoverable if profile.discoverable else False,
}
log.debug(f"arafat {data['fields']}")
dialog = update_profile_dialogs.UpdateProfileDialog(**data)