Try to fix displayname changing between contact and non-contact name. Fixes #533

This commit is contained in:
Tulir Asokan
2021-01-01 12:02:21 +02:00
parent efd536357c
commit 697fb06909
3 changed files with 45 additions and 4 deletions
+1
View File
@@ -34,6 +34,7 @@ class Puppet(Base):
base_url: str = Column(Text, nullable=True)
displayname: str = Column(String, nullable=True)
displayname_source: TelegramID = Column(Integer, nullable=True)
displayname_contact: bool = Column(Boolean, nullable=False, server_default=expression.true())
username: str = Column(String, nullable=True)
photo_id: str = Column(String, nullable=True)
is_bot: bool = Column(Boolean, nullable=True)