File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -315,6 +315,16 @@ def is_bridge_ghost(self, user_id: UserID) -> bool:
315315 async def count_logged_in_users (self ) -> int :
316316 return 0
317317
318+ @staticmethod
319+ @abstractmethod
320+ def get_beeper_service_name () -> str :
321+ pass
322+
323+ @staticmethod
324+ @abstractmethod
325+ def get_beeper_network_name () -> str :
326+ pass
327+
318328 async def manhole_global_namespace (self , user_id : UserID ) -> dict [str , Any ]:
319329 own_user = await self .get_user (user_id , create = False )
320330 try :
Original file line number Diff line number Diff line change @@ -272,6 +272,17 @@ async def init_as_bot(self) -> None:
272272 except Exception :
273273 self .log .exception ("Failed to set bot avatar" )
274274
275+ if self .bridge .homeserver_software .is_hungry :
276+ self .log .debug ("Setting contact info on the appservice bot" )
277+ await self .az .intent .beeper_update_profile (
278+ {
279+ "com.beeper.bridge.service" : self .bridge .get_beeper_service_name (),
280+ "com.beeper.bridge.network" : self .bridge .get_beeper_network_name (),
281+ "com.beeper.bridge.is_bridge_bot" : True ,
282+ "com.beeper.bridge.is_bot" : True ,
283+ }
284+ )
285+
275286 async def init_encryption (self ) -> None :
276287 if self .e2ee :
277288 await self .e2ee .start ()
You can’t perform that action at this time.
0 commit comments