Skip to content

Commit

Permalink
bridgev2/commands: include state event in list-logins
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Nov 13, 2024
1 parent 702a0e0 commit 8fbf245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridgev2/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (user *User) GetFormattedUserLogins() string {
user.Bridge.cacheLock.Lock()
logins := make([]string, len(user.logins))
for key, val := range user.logins {
logins = append(logins, fmt.Sprintf("* `%s` (%s)", key, val.RemoteName))
logins = append(logins, fmt.Sprintf("* `%s` (%s) - `%s`", key, val.RemoteName, val.BridgeState.GetPrev().StateEvent))
}
user.Bridge.cacheLock.Unlock()
return strings.Join(logins, "\n")
Expand Down

0 comments on commit 8fbf245

Please sign in to comment.