## Fix last seen timestamp in `/_synapse/admin/v2/users` response
Fixes #18955
The last seen timestamps contained in `/_synapse/admin/v2/users`
responses were computed as follows:
```sql
[...]
LEFT JOIN (
SELECT user_id, MAX(last_seen) AS last_seen_ts
FROM user_ips GROUP BY user_id
) ls ON u.name = ls.user_id
[...]
```
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| 18911.feature | ||
| 18939.misc | ||
| 18947.misc | ||
| 18948.bugfix | ||