Fix the displaying of Message.system_content
This commit is contained in:
parent
91351a3238
commit
33eba31aac
@ -312,10 +312,9 @@ class Message:
|
|||||||
# with the type ChannelType.group or ChannelType.private
|
# with the type ChannelType.group or ChannelType.private
|
||||||
call_ended = self.call.ended_timestamp is not None
|
call_ended = self.call.ended_timestamp is not None
|
||||||
|
|
||||||
if call_ended:
|
if self.channel.me in self.call.participants:
|
||||||
if self.channel.me in self.call.participants:
|
return '{0.author.name} started a call.'.format(self)
|
||||||
return '{0.author.name} started a call.'.format(self)
|
elif call_ended:
|
||||||
else:
|
return 'You missed a call from {0.author.name}'.format(self)
|
||||||
return 'You missed a call from {0.author.name}'.format(self)
|
|
||||||
else:
|
else:
|
||||||
return '{0.author.name} started a call \N{EM DASH} Join the call.'.format(self)
|
return '{0.author.name} started a call \N{EM DASH} Join the call.'.format(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user