Files
mostlymatter/server/i18n
Alejandro García Montoro 344c5a7528 MM-56781: Use correct error in doInviteRemote (#26304)
* Use correct error in doInviteRemote

A Sentry crash report identified this nil pointer dereference:
https://mattermost-mr.sentry.io/issues/4930233067/events/eae438652c7b4335be2bbe19c977f680

Interestingly, the stack trace shows the actual crash happening in the
function deferred above this line, which makes sense, given that it's
accessing the returned value, which is now nil as well. However, the
origin of the crash is here, since it's using the previous appErr, which
at this point is ensured to be nil, instead of the error returned by
InviteRemoteToChannel. This makes the returned value that should have
been generated by responsef to no longer exist.

* Test inviting a remote to a channel shared with us

* Improve error when InviteRemoteToChannel fails

* Clarify that channel has remoteID

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>

* gofmt

---------

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
2024-02-28 14:00:41 +00:00
..
2023-10-10 18:21:15 +03:00
2023-10-10 18:21:15 +03:00
2023-10-10 18:21:15 +03:00
2023-10-10 18:21:15 +03:00
2023-10-03 22:56:23 -03:00
2023-10-03 22:56:23 -03:00
2023-10-10 18:21:15 +03:00
2023-10-10 18:21:15 +03:00
2023-10-18 14:20:14 -03:00
2023-11-16 13:17:27 -04:00
2023-10-03 22:56:23 -03:00
2023-10-03 22:56:23 -03:00
2023-10-03 22:56:23 -03:00
2023-10-10 18:21:15 +03:00
2023-10-10 18:21:15 +03:00
2023-10-03 22:56:23 -03:00
2024-02-16 08:06:00 -07:00
2023-10-10 18:21:15 +03:00
2023-10-03 22:56:23 -03:00
2023-10-03 22:56:23 -03:00
2023-10-10 18:21:15 +03:00
2023-10-03 22:56:23 -03:00
2023-10-10 18:21:15 +03:00
2023-10-03 22:56:23 -03:00