From 62faa27fb136f53c0acea6278a1b648effb0236b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Evren=20Esat=20=C3=96zkan?= Date: Thu, 21 Jul 2016 20:03:10 +0300 Subject: [PATCH] rref #5367 rref #5366 ref zetaops/zengine#66 ref zetaops/zengine#65 --- zengine/messaging/views.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/zengine/messaging/views.py b/zengine/messaging/views.py index b9348f03..cc3947ce 100644 --- a/zengine/messaging/views.py +++ b/zengine/messaging/views.py @@ -151,6 +151,7 @@ def show_channel(current, waited=False): 'is_online': bool, 'avatar_url': string, }], + 'name': string, 'last_messages': [MSG_DICT] 'status': 'OK', 'code': 200 @@ -292,6 +293,15 @@ def create_channel(current): # response: { + 'description': string, + 'name': string, + 'no_of_members': int, + 'member_list': [ + {'name': string, + 'is_online': bool, + 'avatar_url': string, + }], + 'last_messages': [MSG_DICT] 'status': 'Created', 'code': 201, 'channel_key': key, # of just created channel @@ -479,6 +489,14 @@ def create_direct_channel(current): # response: { + 'description': string, + 'no_of_members': int, + 'member_list': [ + {'name': string, + 'is_online': bool, + 'avatar_url': string, + }], + 'last_messages': [MSG_DICT] 'status': 'Created', 'code': 201, 'channel_key': key, # of just created channel