matrixfmt,telegramfmt: correctly bridge mentions of other logged-in users

This commit is contained in:
Tulir Asokan
2026-04-02 23:56:08 +03:00
parent 693ced7dea
commit 835afb0100
5 changed files with 32 additions and 12 deletions
+4
View File
@@ -56,6 +56,10 @@ func ParseUserLoginID(userID networkid.UserLoginID) (int64, error) {
return strconv.ParseInt(string(userID), 10, 64)
}
func UserLoginIDToUserID(userLoginID networkid.UserLoginID) networkid.UserID {
return networkid.UserID(userLoginID)
}
func MakeUserLoginID(userID int64) networkid.UserLoginID {
if userID == 0 {
return ""