Delay loading of saved displayName until after the websocket is open to display "Loading…" until then

This commit is contained in:
schlagmichdoch 2023-10-31 18:32:23 +01:00
parent 1c79290ad6
commit cb8d6448f5
5 changed files with 92 additions and 92 deletions

View file

@ -199,12 +199,10 @@ class PairDropServer {
// send displayName
this._send(peer, {
type: 'display-name',
message: {
displayName: peer.name.displayName,
deviceName: peer.name.deviceName,
peerId: peer.id,
peerIdHash: hasher.hashCodeSalted(peer.id)
}
displayName: peer.name.displayName,
deviceName: peer.name.deviceName,
peerId: peer.id,
peerIdHash: hasher.hashCodeSalted(peer.id)
});
}