Username support.

This commit is contained in:
retoor 2025-01-29 22:15:25 +01:00
parent a8e3ad1af9
commit 99cea506de
2 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@ class ChatService(BaseService):
channel_uid=channel_uid, channel_uid=channel_uid,
created_at=channel_message["created_at"], created_at=channel_message["created_at"],
updated_at=None, updated_at=None,
username=user['username'],
uid=channel_message['uid'], uid=channel_message['uid'],
user_nick=user['nick'] user_nick=user['nick']
)) ))

View File

@ -74,7 +74,8 @@ class RPCView(BaseView):
user_nick=user['nick'], user_nick=user['nick'],
message=message["message"], message=message["message"],
created_at=message["created_at"], created_at=message["created_at"],
html=message['html'] html=message['html'],
username=user['username']
)) ))
return messages return messages