Fixed deprecation of Account.findBuddy() in pygui sample app (#3815)

This commit is contained in:
sauwming 2023-12-27 19:31:36 +08:00 committed by GitHub
parent 033e4d7ae3
commit 42a3e78d75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ class Chat(gui.ChatObserver):
# it is a temporary one and not really registered to acc
bud = None
try:
bud = self._acc.findBuddy(uri_str)
bud = self._acc.findBuddy2(uri_str)
except:
bud = buddy.Buddy(None)
bud_cfg = pj.BuddyConfig()