Begin WhatsApp integration
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
from django.conf import settings
|
||||
from django.shortcuts import render
|
||||
from django.views import View
|
||||
from mixins.views import ObjectList, ObjectRead
|
||||
@@ -56,9 +55,6 @@ class WhatsAppAccounts(SuperUserRequiredMixin, ObjectList):
|
||||
"service_label": "WhatsApp",
|
||||
"account_add_url_name": "whatsapp_account_add",
|
||||
"show_contact_actions": False,
|
||||
"endpoint_base": str(
|
||||
getattr(settings, "WHATSAPP_HTTP_URL", "http://whatsapp:8080")
|
||||
).rstrip("/"),
|
||||
"service_warning": transport.get_service_warning("whatsapp"),
|
||||
}
|
||||
return self._normalize_accounts(transport.list_accounts("whatsapp"))
|
||||
|
||||
Reference in New Issue
Block a user