Collapse duplicate device entries, keyed by user + device index (so user@server and user:0@server count as the same device). Keeps the first occurrence, preserves order.
user@server
user:0@server
Collapse duplicate device entries, keyed by user + device index (so
user@serveranduser:0@servercount as the same device). Keeps the first occurrence, preserves order.