Fix entity database not using the phone on {phone: id}

Closes #412
This commit is contained in:
Lonami Exo 2017-11-07 10:15:55 +01:00
parent 83af705cc8
commit f65322af18

View File

@ -132,7 +132,7 @@ class EntityDatabase:
phone = getattr(entity, 'phone', None)
if phone:
self._username_id[phone] = marked_id
self._phone_id[phone] = marked_id
def _parse_key(self, key):
"""Parses the given string, integer or TLObject key into a