| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-05-03 19:32:55 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-05-03 19:34:35 UTC |
| parent | f2accce5845917be0112975f3326bc4bdb368c1a |
| borogove/Client.hx | +2 | -4 |
diff --git a/borogove/Client.hx b/borogove/Client.hx index c000d72..18264d0 100644 --- a/borogove/Client.hx +++ b/borogove/Client.hx @@ -752,9 +752,7 @@ class Client extends EventEmitter { fastCount = login.fastCount; stream.clientId = login.clientId ?? ID.unique(); jid = jid.withResource(stream.clientId); - if (!updateDisplayName(login.displayName) && login.clientId == null) { - persistence.storeLogin(jid.asBare().asString(), stream.clientId, this.displayName(), null); - } + _displayName = login.displayName ?? _displayName; return persistence.getChats(accountId()); }).then((protoChats) -> { @@ -890,7 +888,7 @@ class Client extends EventEmitter { private function onConnected(data) { // Fired on connect or reconnect if (data != null && data.jid != null) { jid = JID.parse(data.jid); - if (stream.clientId == null && !jid.isBare()) persistence.storeLogin(jid.asBare().asString(), jid.resource, displayName(), null); + if (stream.clientId == null && !jid.isBare()) persistence.storeLogin(jid.asBare().asString(), stream.clientId ?? jid.resource, displayName(), null); } if (data.resumed) {