mattermost/app
Jesse Hallam bb1facb1f5
MM-20755: fix post actions in DMs/GMs (#13248)
* MM-20755: fix post actions in DMs/GMs

The fix for https://github.com/mattermost/mattermost-server/issues/12377 assumed that all channels have teams, but this is false for DMs and GMs.  Test for this and avoid failing on a missing team as such.

Fixes: https://mattermost.atlassian.net/browse/MM-20755

* tweak code for clarity
2019-12-10 12:57:54 -04:00
..
plugin_api_test Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
admin.go MM-8607: Add ability to turn off non-critical services when under load; cluster support (#13267) 2019-12-03 18:56:39 +01:00
analytics.go MM-19957 - Deactivating a user should increment the Daily and… (#13232) 2019-12-02 15:48:36 +02:00
app.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
app_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
audit.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
authentication.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
authentication_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
authorization.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
authorization_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
auto_channels.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
auto_constants.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
auto_environment.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
auto_posts.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
auto_responder.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
auto_responder_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
auto_teams.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
auto_users.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
bot.go [MM-14725] Inform System Admins when a user who managed bot ac… (#11669) 2019-12-06 20:00:47 -06:00
bot_test.go [MM-14725] Inform System Admins when a user who managed bot ac… (#11669) 2019-12-06 20:00:47 -06:00
brand.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
busy.go MM-8607: Add ability to turn off non-critical services when under load; cluster support (#13267) 2019-12-03 18:56:39 +01:00
busy_test.go MM-8607: Add ability to turn off non-critical services when under load; cluster support (#13267) 2019-12-03 18:56:39 +01:00
channel.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
channel_test.go MM-20649 Fix incorrect mention count when marking a DM channel as unread (#13245) 2019-12-02 09:30:08 -05:00
cluster.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
cluster_discovery.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
cluster_discovery_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
cluster_handlers.go MM-8607: Add ability to turn off non-critical services when under load; cluster support (#13267) 2019-12-03 18:56:39 +01:00
command.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_away.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_channel_header.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_channel_header_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_channel_purpose.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_channel_purpose_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_channel_rename.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_channel_rename_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_code.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_code_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_dnd.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_echo.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_expand_collapse.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_groupmsg.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_groupmsg_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_help.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_invite.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_invite_people.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_invite_people_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_invite_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_join.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_join_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_leave.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_leave_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_loadtest.go MM-19957 - Deactivating a user should increment the Daily and… (#13232) 2019-12-02 15:48:36 +02:00
command_logout.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_me.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_me_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_msg.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_msg_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_mute.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_mute_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_offline.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_online.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_open.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_remove.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_remove_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_search.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_settings.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_shortcuts.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_shrug.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
command_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
compliance.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
config.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
config_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
data_retention.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
diagnostics.go MM-19957 - Deactivating a user should increment the Daily and… (#13232) 2019-12-02 15:48:36 +02:00
diagnostics_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
elasticsearch.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
email.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
email_batching.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
email_batching_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
email_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
emoji.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
enterprise.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
export.go Bulk import/export supports direct messages from a user to themselves (#13200) 2019-12-05 22:58:38 +08:00
export_converters.go Bulk import/export supports direct messages from a user to themselves (#13200) 2019-12-05 22:58:38 +08:00
export_test.go Bulk import/export supports direct messages from a user to themselves (#13200) 2019-12-05 22:58:38 +08:00
file.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
file_bench_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
file_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
group.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
group_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
helper_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
import.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
import_functions.go [MM-19969] - When bulk import finds an already existing post, it should delete existing files (#13037) 2019-12-03 10:52:29 +01:00
import_functions_test.go [MM-19892] Fix failing test TestImportBulkImport (#13003) 2019-12-04 11:31:52 -05:00
import_test.go Bulk import/export supports direct messages from a user to themselves (#13200) 2019-12-05 22:58:38 +08:00
import_types.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
import_validators.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
import_validators_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
integration_action.go MM-20755: fix post actions in DMs/GMs (#13248) 2019-12-10 12:57:54 -04:00
integration_action_test.go MM-20755: fix post actions in DMs/GMs (#13248) 2019-12-10 12:57:54 -04:00
job.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
job_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
ldap.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
license.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
license_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
login.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
login_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
main_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
migrations.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
notification.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
notification_email.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
notification_email_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
notification_push.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
notification_push_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
notification_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
oauth.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
oauth_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
opengraph.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
opengraph_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
options.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
permissions.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
permissions_migrations.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
permissions_migrations_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
permissions_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
plugin.go MM-20642 - Failed to install marketplace plugin on older mattermost servers (#13237) 2019-12-02 13:42:54 -05:00
plugin_api.go [MM-20353] Change KVSetWithOptions to accept a byte slice (#13213) 2019-12-03 10:46:15 +01:00
plugin_api_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
plugin_commands.go [MM-19948] Set version on module file and internal paths (#13186) 2019-11-28 14:39:38 +01:00
plugin_commands_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
plugin_context.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
plugin_deadlock_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
plugin_event.go [MM-19948] Set version on module file and internal paths (#13186) 2019-11-28 14:39:38 +01:00
plugin_hooks_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
plugin_install.go [MM-19948] Set version on module file and internal paths (#13186) 2019-11-28 14:39:38 +01:00
plugin_install_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
plugin_key_value_store.go [MM-20353] Change KVSetWithOptions to accept a byte slice (#13213) 2019-12-03 10:46:15 +01:00
plugin_public_keys.go [MM-20309] production public key (#13244) 2019-12-05 23:41:52 +04:00
plugin_requests.go [MM-19948] Set version on module file and internal paths (#13186) 2019-11-28 14:39:38 +01:00
plugin_shutdown_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
plugin_signature.go [MM-19948] Set version on module file and internal paths (#13186) 2019-11-28 14:39:38 +01:00
plugin_signature_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
plugin_statuses.go [MM-19948] Set version on module file and internal paths (#13186) 2019-11-28 14:39:38 +01:00
plugin_test.go [MM-20309] production public key (#13244) 2019-12-05 23:41:52 +04:00
post.go MM-20681 Fix custom post types not marking channel unread when using Mark as Unread (#13247) 2019-12-03 14:51:50 -05:00
post_metadata.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
post_metadata_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
post_test.go MM-20649 Fix incorrect mention count when marking a DM channel as unread (#13245) 2019-12-02 09:30:08 -05:00
preference.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
ratelimit.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
ratelimit_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
reaction.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
response_transfer.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
role.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
saml.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
scheme.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
security_update_check.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
server.go MM-8607: Add ability to turn off non-critical services when under load; cluster support (#13267) 2019-12-03 18:56:39 +01:00
server_app_adapters.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
server_license.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
server_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
session.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
session_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
slack.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
slack_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
slackimport.go [MM-19880] Limit size of file inside Zip archive before JSON parsing for Slack Import (#12514) 2019-12-02 18:55:34 +01:00
slackimport_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
status.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
status_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
svg.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
svg_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
syncables.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
syncables_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
team.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
team_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
terms_of_service.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
user.go [MM-14725] Inform System Admins when a user who managed bot ac… (#11669) 2019-12-06 20:00:47 -06:00
user_agent.go [MM-12536] Migrate to idiomatic error handling the file app/user_agent.go in the mattermost-server (#9575) (#9576) 2018-10-15 20:01:35 +01:00
user_agent_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
user_terms_of_service.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
user_terms_of_service_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
user_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
user_viewmembers_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
web_conn.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
web_conn_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
web_hub.go Fix typo for v5 module path (#13313) 2019-12-04 10:59:11 +01:00
web_hub_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
webhook.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
webhook_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
websocket_router.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00