Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

Editting message #121

Description

@khaledkee

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:

  1. Create a reach object with default options as in the manual and default data model.
  2. Login and create a room as in the manual.
  3. Send a message using room.sendMessage(<text>)
  4. 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');});
      });
  });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions