mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-22 05:11:55 +01:00
Message: Fix mention without username (#1625)
This commit is contained in:
parent
9119a1afdd
commit
5cecb63cef
@ -1031,7 +1031,7 @@ function buildApiMessageEntity(entity: GramJs.TypeMessageEntity): ApiMessageEnti
|
||||
type,
|
||||
offset,
|
||||
length,
|
||||
...('userId' in entity && typeof entity.userId === 'number' && { userId: entity.userId }),
|
||||
...(entity instanceof GramJs.MessageEntityMentionName && { userId: buildApiPeerId(entity.userId, 'user') }),
|
||||
...('url' in entity && { url: entity.url }),
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user