Matrix bridge: Change the condition of not_from_zulip_bot.
This commit is contained in:
parent
20e7f197e3
commit
8670cce8e9
|
@ -75,10 +75,7 @@ def matrix_to_zulip(
|
||||||
zulip_bot_user = ('@%s:matrix.org' % matrix_config['username'])
|
zulip_bot_user = ('@%s:matrix.org' % matrix_config['username'])
|
||||||
# We do this to identify the messages generated from Zulip -> Matrix
|
# We do this to identify the messages generated from Zulip -> Matrix
|
||||||
# and we make sure we don't forward it again to the Zulip stream.
|
# and we make sure we don't forward it again to the Zulip stream.
|
||||||
not_from_zulip_bot = (
|
not_from_zulip_bot = event['sender'] != zulip_bot_user
|
||||||
'body' not in event['content']
|
|
||||||
or event['sender'] != zulip_bot_user
|
|
||||||
)
|
|
||||||
|
|
||||||
if not_from_zulip_bot and content:
|
if not_from_zulip_bot and content:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue