@reactoo/watchtogether-sdk-js 2.4.35 → 2.4.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/example/index.html
CHANGED
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
.then(r => Instance.room.createSession({roomId:r.roomId, pinHash: r.pinHash})) // pin hash is not needed if you're owner of the room
|
|
155
155
|
.then(session => {
|
|
156
156
|
Instance.user.getUserSelf().then(r => {
|
|
157
|
-
Instance.room.getRoomChatList()
|
|
157
|
+
Instance.room.getRoomChatList({roomId})
|
|
158
158
|
.then(r => console.log('wooo',r))
|
|
159
159
|
|
|
160
160
|
})
|
package/package.json
CHANGED
package/src/models/room.js
CHANGED
|
@@ -196,10 +196,10 @@ let room = function () {
|
|
|
196
196
|
|
|
197
197
|
},
|
|
198
198
|
|
|
199
|
-
setUser: ({userId, roomId, flag, timestamp, option}) => {
|
|
199
|
+
setUser: ({messageId, userId, roomId, flag, timestamp, option}) => {
|
|
200
200
|
//leave, kick, ban, unban, approve, report
|
|
201
201
|
return this.__privates.auth.__client
|
|
202
|
-
.then(client => client.apis.wt.setUser({userId, roomId, flag, timestamp, option}));
|
|
202
|
+
.then(client => client.apis.wt.setUser({messageId, userId, roomId, flag, timestamp, option}));
|
|
203
203
|
},
|
|
204
204
|
|
|
205
205
|
getRoomById: (id, pinHash = undefined, showPublic = undefined, demo = false) => {
|