#1518·webogram

Disable message box for groups with restricted access

Author: allesmiCreated Oct 8, 2017Updated Nov 24, 2021
Labelsenhancement

In a group where administrators have restricted members from writing, the message box is enabled. Only after trying to send a message the user is informed that the access is denied.

Steps to reproduce:

  1. Join a group where administrators have restricted members from writing
  2. Write any message and hit send

Result:

A modal with the following message pops up:

Access denied
You are not allowed for this action.
Technical details: Method: messages.sendMessage
Result: {"_":"rpc_error","error_code":403,"error_message":"CHAT_WRITE_FORBIDDEN"}