user groups: Add live update support for user_group add event.

We add live update support for user group events as part of
https://github.com/zulip/zulip/issues/19526.
This however has a few TODOs:
1. Deciding on how we want to sort the group list on left of
   #groups overlay.
2. How we highlight the newly created groups after it is added
   to the list.
These will be covered as we add support for more groups events.
This commit is contained in:
m-e-l-u-h-a-n
2023-02-02 22:19:02 +05:30
committed by Tim Abbott
parent fdd9f018ad
commit 6147f2bd7a
6 changed files with 78 additions and 4 deletions

View File

@@ -272,8 +272,8 @@ function create_stream() {
error(xhr) {
const msg = JSON.parse(xhr.responseText).msg;
if (msg.includes("access")) {
// If we can't access the stream, we can safely assume it's
// a duplicate stream that we are not invited to.
// If we can't access the stream, we can safely
// assume it's a duplicate stream that we are not invited to.
//
// BUG: This check should be using error codes, not
// parsing the error string, so it works correctly