Skip to content

Commit

Permalink
Add Watermark userid list to PacketChatOnRoomRes.
Browse files Browse the repository at this point in the history
Update to 3.1.6
  • Loading branch information
storycraft committed Dec 8, 2020
1 parent efb89d6 commit 89bc5e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-kakao",
"version": "3.1.5",
"version": "3.1.6",
"description": "Loco protocol compatible library",
"main": "dist/index.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/packet/packet-chat-on-room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class PacketChatOnRoomRes extends LocoBsonResponsePacket {
public MemberList?: (MemberStruct | OpenMemberStruct)[],
public MemberIdList?: Long[],
public Type: ChannelType = ChannelType.UNKNOWN,
public WatermarkUserIdList: Long[] = [],
public WatermarkList: Long[] = [],
public OpenChatToken: number = 0,
public ClientOpenProfile?: OpenLinkMemberStruct
Expand All @@ -63,6 +64,8 @@ export class PacketChatOnRoomRes extends LocoBsonResponsePacket {

this.Type = rawData['t'];
if (rawData['w']) this.WatermarkList = rawData['w'];

if (rawData['a']) this.WatermarkUserIdList = rawData['a'];

this.MemberList = [];
if (rawData['otk']) this.OpenChatToken = rawData['otk'];
Expand Down

0 comments on commit 89bc5e2

Please sign in to comment.