Mattermost is an open source platform for secure collaboration across the entire software development lifecycle..
Go to file
Kyriakos Z 14fcc8a22e
MM-52513: fixes deleting a reply (#23177)
* MM-52513: fixes deleting a reply

Currently when we receive a WS event for a reply being deleted we might
accidentally push it to a wrong team's store. This might happen if the
thread is already loaded in store and we are viewing another team.
In that case we were fetching the thread from the API using the team id
of the current team. The API returns the thread, even though the team id
is not the one which the thread belongs to.

This commit is fixing the above issue by getting the team id in which
the thread belongs to, or current team id in the case of DM/GM messages,
and using that to fetch the thread from the API.

PS: the fetching is needed since we don't send a thread_update WS event
upon deleting a reply, and we need to get the new participants list.

* Fixes team id on another occasion

* Refactors a bit

* Reverts returning empty string as team id

* Refactor a bit to pass the post as argument

---------

Co-authored-by: Kyriakos Ziakoulis <koox00@Kyriakoss-MacBook-Pro.local>
Co-authored-by: Kyriakos Ziakoulis <koox00@192.168.2.3>
Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
2023-05-30 15:33:19 -04:00
.github Prepare: run E2E smoketests with GitHub actions (#23301) 2023-05-30 17:34:15 +02:00
e2e-tests Prepare: run E2E smoketests with GitHub actions (#23301) 2023-05-30 17:34:15 +02:00
server Prepare: run E2E smoketests with GitHub actions (#23301) 2023-05-30 17:34:15 +02:00
webapp MM-52513: fixes deleting a reply (#23177) 2023-05-30 15:33:19 -04:00
.gitignore Merge branch 'master' into fix-boards-webapp-unit-tests 2023-03-29 09:37:24 -05:00
.gitlab-ci.yml Trigger master branch for builds (#22616) 2023-03-27 10:01:02 +03:00
.gitpod.yml Add .gitpod.yml to use mattermost-gitpod-config repo for Gitpod configuration (#19984) 2022-04-14 11:02:50 -04:00
.nvmrc Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
CHANGELOG.md Changelog link (#8805) 2018-05-30 10:23:25 -04:00
CODEOWNERS Add CODEOWNERS for migrations (#23020) 2023-04-19 20:01:50 +05:30
CONTRIBUTING.md Remove outdated information from contributing file (#10749) 2019-05-01 23:46:00 +02:00
LICENSE.txt update LICENSE.txt (#22659) 2023-03-27 10:54:06 -03:00
NOTICE.txt Update Licences at Notice.txt to reflect dependency changes. (#21751) 2022-11-29 13:30:18 +03:00
README.md Adjustments to README (#20494) 2022-06-24 13:18:39 +03:00
SECURITY.md MM-41988 Updated links to legacy domain about.mm.com (#19552) 2022-03-16 19:47:57 +08:00

Mattermost

Mattermost is an open source platform for secure collaboration across the entire software development lifecycle. This repo is the primary source for core development on the Mattermost platform; it's written in Go and React and runs as a single Linux binary with MySQL or PostgreSQL. A new compiled version is released under an MIT license every month on the 16th.

Use it for free in Mattermost Cloud or deploy on-premises.

mattermost-hero

Learn more about the following use cases with Mattermost:

Other useful resources:

Table of contents

Install Mattermost

Other install guides:

Native mobile and desktop apps

In addition to the web interface, you can also download Mattermost clients for Android, iOS, Windows PC, macOS, and Linux.

Google Play App Store Windows PC Mac OSX Linux

Get security bulletins

Receive notifications of critical security updates. The sophistication of online attackers is perpetually increasing. If you're deploying Mattermost it's highly recommended you subscribe to the Mattermost Security Bulletin mailing list for updates on critical security releases.

Subscribe here

Get involved

Learn more

License

See the LICENSE file for license rights and limitations.

Get the latest news

Contributing

Please see CONTRIBUTING.md. Join the Mattermost Contributors server to join community discussions about contributions, development, and more.