Rocket.Chat basic message structure fix (#419)

You only can send alias and avatar properties if your user has the bot role. We implement this rule to avoid users to impersonate other users. - quoted from Rocket.Chat website

This update accounts for this restriction
This commit is contained in:
Chris Caron
2021-08-08 11:44:12 -04:00
committed by GitHub
parent 49af85bfe1
commit 0b26d1c884
2 changed files with 45 additions and 26 deletions

View File

@ -3748,7 +3748,7 @@ TEST_URLS = (
},
}),
# Several channels
('rocket://user:pass@localhost/#channel1/#channel2/?avatar=No', {
('rocket://user:pass@localhost/#channel1/#channel2/?avatar=Yes', {
'instance': plugins.NotifyRocketChat,
# The response text is expected to be the following on a success
'requests_response_text': {
@ -3772,7 +3772,7 @@ TEST_URLS = (
},
}),
# A room and channel
('rocket://user:pass@localhost/room/#channel?mode=basic', {
('rocket://user:pass@localhost/room/#channel?mode=basic&avatar=Yes', {
'instance': plugins.NotifyRocketChat,
# The response text is expected to be the following on a success
'requests_response_text': {