Add contact in a room Args: contact: the contact to be added Examples: >>> await room.add(contact) Returns: None
(self, contact: Contact)
| 448 | # ''' |
| 449 | |
| 450 | async def add(self, contact: Contact) -> None: |
| 451 | """ |
| 452 | Add contact in a room |
| 453 | Args: |
| 454 | contact: the contact to be added |
| 455 | Examples: |
| 456 | >>> await room.add(contact) |
| 457 | Returns: |
| 458 | None |
| 459 | """ |
| 460 | log.info('Room add <%s>', contact) |
| 461 | |
| 462 | await self.puppet.room_add(self.room_id, contact.contact_id) |
| 463 | # reload the payload |
| 464 | await self.ready(force_sync=True) |
| 465 | |
| 466 | async def delete(self, contact: Contact) -> None: |
| 467 | """ |