Skip to content

Commit e34dd0b

Browse files
committed
Fix avatars sometimes showing in private chat
Signed-off-by: Igor Kotrasinski <[email protected]>
1 parent d68ebbe commit e34dd0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/chat/channel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def _chname_has_avatar(self, chname):
319319
return True
320320

321321
def printMsg(self, chname, text, scroll_forced=False):
322-
if self._chname_has_avatar(chname):
322+
if self._chname_has_avatar(chname) and not self.private:
323323
fmt = Formatters.FORMATTER_MESSAGE_AVATAR
324324
else:
325325
fmt = Formatters.FORMATTER_MESSAGE
@@ -328,7 +328,7 @@ def printMsg(self, chname, text, scroll_forced=False):
328328
def printAction(self, chname, text, scroll_forced=False, server_action=False):
329329
if server_action:
330330
fmt = Formatters.FORMATTER_RAW
331-
elif self._chname_has_avatar(chname):
331+
elif self._chname_has_avatar(chname) and not self.private:
332332
fmt = Formatters.FORMATTER_ACTION_AVATAR
333333
else:
334334
fmt = Formatters.FORMATTER_ACTION

0 commit comments

Comments
 (0)