Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checkbox for locking conversation #4331

Merged
merged 5 commits into from
Oct 15, 2020

Commits on Oct 13, 2020

  1. Add checkbox for locking conversation

    Added logic for setting a conversation to read-only.
    
    Signed-off-by: Vincent Petry <vincent@nextcloud.com>
    PVince81 committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    bd78555 View commit details
    Browse the repository at this point in the history
  2. Hide chat controls in read-only conversation

    In a read-only conversation, the following actions are not available:
    - start call button is hidden
    - field for posting fields is hidden
    - reply button in the messages list is hidden
    
    Signed-off-by: Vincent Petry <vincent@nextcloud.com>
    PVince81 committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    c176c68 View commit details
    Browse the repository at this point in the history
  3. In case of error when sending message, revert

    Whenever an error occurs when sending a message, the message is now put
    back into the field and the temporary one is removed from the messages list.
    
    Whenever a conversation was locked or lobby was enabled concurrently,
    posting a message before the UI update could result in a 403 or 412 error.
    These now display a proper message to inform about missing permissions.
    
    Signed-off-by: Vincent Petry <vincent@nextcloud.com>
    PVince81 committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    0312818 View commit details
    Browse the repository at this point in the history
  4. Read-only conversation tweaks

    Moved isConversationReadOnly condition on the reply action button
    instead of affecting all possible (future) actions.
    
    Now using `showError` instead of the global OC notification, the
    displayed border now has the correct color.
    
    Renamed "room" to "conversation" in the error message.
    
    Signed-off-by: Vincent Petry <vincent@nextcloud.com>
    PVince81 committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    cbb16c0 View commit details
    Browse the repository at this point in the history
  5. Display disabled message form in read-only rooms

    Signed-off-by: Vincent Petry <vincent@nextcloud.com>
    PVince81 committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    51debd5 View commit details
    Browse the repository at this point in the history