-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hello there,
I'm using the unpkg version of Reach and I was trying to edit a message created by the same user. It gives me a permission error.
Error: permission_denied: Client doesn't have permission to access the desired data.
Stack trace:
value/<@https://unpkg.com/webcom/webcom:20:15097
i@https://unpkg.com/webcom/webcom:18:20466
value@https://unpkg.com/webcom/webcom:20:14955
value/<@https://unpkg.com/webcom/webcom:20:10992
value/<@https://unpkg.com/webcom/webcom:20:168
value@https://unpkg.com/webcom/webcom:20:472
value@https://unpkg.com/webcom/webcom:21:20134
value@https://unpkg.com/webcom/webcom:21:20043
value/<@https://unpkg.com/webcom/webcom:21:18196
value@https://unpkg.com/webcom/webcom:23:4303
value@https://unpkg.com/webcom/webcom:23:4917
value/this.mySock.onmessage@https://unpkg.com/webcom/webcom:23:3841
Browsers: FireFox 56.0.1 (64-bit), Chrome 61.0.3163.100 (Official Build) (64-bit), IE 11.0.9600.18792
Operating system: Windows 7 SP1
Steps to reproduce:
- Create a reach object with default options as in the manual and default data model.
- Login and create a room as in the manual.
- Send a message using
room.sendMessage(<text>) - Edit the message returned from the Promise
Full code:
var _reach = ref(); // ref returns reach object as described in the manual
_reach.login('','','',true) // email, password and username are omitted
.then(function(user) {
_reach.createRoom('newRoom')
.then(function(newRoom){
newRoom.sendMessage('new msg')
.then(function(msg) {msg.edit('new text');});
});
});Metadata
Metadata
Assignees
Labels
No labels