python-wechaty icon indicating copy to clipboard operation
python-wechaty copied to clipboard

contactlist not updated

Open pooluut opened this issue 6 years ago • 4 comments

I get the contact list of my bot from api: self.Contact.find_all()

But i found the contact_list is not updated. (Some of my friend not found, Someone I deleted is still there, the alias name is not updated)

I trace the find_all() function and found:

# chatie_grpc/wechaty.py
    async def contact_list(self) -> ContactListResponse:
        request = ContactListRequest()

        return await self._unary_unary(
            "/wechaty.Puppet/ContactList", request, ContactListResponse,
        )

I guess it request the contact list from the remote server.

How can I get the updated contact list?

pooluut avatar Jun 09 '20 07:06 pooluut

@huan

pooluut avatar Jun 09 '20 09:06 pooluut

This is a **_dirty feature which has not been achieved.

wj-Mcat avatar Jun 09 '20 09:06 wj-Mcat

This is a **_dirty feature which has not been achieved.

what do you mean by '**_dirty'

pooluut avatar Jun 09 '20 09:06 pooluut

what do you mean by '**_dirty'

@wechaty/ducks for example, room_dirty function will tell the hostie-server that room info is dirty, and it should update room info from weixin. So that hostie-server will send right info to python-wechaty.

wj-Mcat avatar Jun 09 '20 12:06 wj-Mcat