Merge branch 'hotfix/fix_defaultprocessor_display_amount'

This commit is contained in:
taizan-hokuto
2020-01-13 08:19:42 +09:00
2 changed files with 0 additions and 8 deletions

View File

@@ -10,13 +10,9 @@ class LiveChatPaidMessageRenderer(BaseRenderer):
def get_snippet(self):
super().get_snippet()
self.author.name = self.renderer["authorName"]["simpleText"]
amountDisplayString, symbol, amount =(
self.get_amountdata(self.renderer)
)
self.message = self.get_message(self.renderer)
self.amountValue= amount
self.amountString = amountDisplayString
self.currency= currency.symbols[symbol]["fxtext"] if currency.symbols.get(symbol) else symbol

View File

@@ -10,13 +10,9 @@ class LiveChatPaidStickerRenderer(BaseRenderer):
def get_snippet(self):
super().get_snippet()
self.author.name = self.renderer["authorName"]["simpleText"]
amountDisplayString, symbol, amount =(
self.get_amountdata(self.renderer)
)
self.message = ""
self.amountValue = amount
self.amountString = amountDisplayString
self.currency = currency.symbols[symbol]["fxtext"] if currency.symbols.get(symbol) else symbol