widgets: Remove ALLOW_SUB_MESSAGES flag and enable widgets by default.

This commit is contained in:
Rohitt Vashishtha
2019-01-29 15:57:45 +00:00
committed by Tim Abbott
parent a197959959
commit a2751d90c2
5 changed files with 7 additions and 31 deletions

View File

@@ -46,11 +46,9 @@ def get_extra_data_from_widget_type(content: str,
def do_widget_post_save_actions(message: MutableMapping[str, Any]) -> None:
'''
This is experimental code that only works with the
webapp for now.
This code works with the webapp; mobile and other
clients should also start supporting this soon.
'''
if not settings.ALLOW_SUB_MESSAGES:
return
content = message['message'].content
sender_id = message['message'].sender_id
message_id = message['message'].id