纯表情消息不需要翻译

This commit is contained in:
John Smith 2023-08-28 19:36:33 +08:00
parent 5bdf2e41df
commit 7c2c48273c

View File

@ -332,7 +332,7 @@ class LiveMsgHandler(blivedm.BaseHandler):
text_emoticons = self._parse_text_emoticons(message)
need_translate = self._need_translate(message.msg, room)
need_translate = content_type != api.chat.ContentType.EMOTICON and self._need_translate(message.msg, room)
if need_translate:
translation = services.translate.get_translation_from_cache(message.msg)
if translation is None: