1
0
Fork 0

Initial investigation for hang-on-init

This commit is contained in:
Alex Palaistras 2023-06-20 16:49:15 +01:00
parent 7140b36b24
commit 3d8871c77d
1 changed files with 4 additions and 0 deletions

View File

@ -117,9 +117,13 @@ class Bookmarks(LegacyBookmarks[str, MUC]):
self.__filled = True
async def add_whatsapp_group(self, data: whatsapp.Group):
self.log.debug("HERE Getting Legacy ID %s", data.JID)
muc = await self.by_legacy_id(data.JID)
self.log.debug("HERE Updating WhatsApp Info ID %s", data.JID)
await muc.update_whatsapp_info(data)
self.log.debug("HERE Adding to bookmarks ID %s", data.JID)
await muc.add_to_bookmarks()
self.log.debug("HERE Finished ID %s", data.JID)
async def legacy_id_to_jid_local_part(self, legacy_id: str):
return "#" + legacy_id[: legacy_id.find("@")]