Telegram: Display username on accounts tab

This commit is contained in:
Harvey Tindall
2021-05-07 17:01:22 +01:00
parent 36edd4ab0d
commit 0f41d1e6cf
4 changed files with 35 additions and 7 deletions
+3 -1
View File
@@ -1171,7 +1171,9 @@ func (app *appContext) GetUsers(gc *gin.Context) {
if ok {
user.Expiry = expiry.Unix()
}
if tgUser, ok := app.storage.telegram[jfUser.ID]; ok {
user.Telegram = tgUser.Username
}
resp.UserList[i] = user
i++
}