mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Fix family member display name in the mailbox
This commit is contained in:
parent
81e339d9e9
commit
f3ca3df3c0
1 changed files with 8 additions and 1 deletions
|
@ -512,4 +512,11 @@ class MailboxScreen(DirectObject.DirectObject):
|
|||
def getSenderName(self, avId):
|
||||
sender = base.cr.identifyFriend(avId)
|
||||
|
||||
return sender.getName() if sender else TTLocalizer.MailboxGiftTagAnonymous
|
||||
if sender:
|
||||
return sender.getName()
|
||||
|
||||
for av in base.cr.avList:
|
||||
if av.id == avId:
|
||||
return av.name
|
||||
|
||||
return TTLocalizer.MailboxGiftTagAnonymous
|
||||
|
|
Loading…
Reference in a new issue