diff --git a/src/chat/client.nim b/src/chat/client.nim index ecdac57..5f86422 100644 --- a/src/chat/client.nim +++ b/src/chat/client.nim @@ -77,7 +77,7 @@ proc newClient*(ds: WakuClient, ephemeral: bool = true, installation_name: strin var q = QueueRef(queue: newAsyncQueue[ChatPayload](10)) var c = ChatClient( - libchatCtx: newConversationsContext(), + libchatCtx: newConversationsContext(installation_name), ds: ds, inboundQueue: q, isRunning: false, @@ -97,7 +97,7 @@ proc newClient*(ds: WakuClient, ephemeral: bool = true, installation_name: strin ################################################# proc getId*(client: ChatClient): string = - result = "PLACEHOLDER_CLIENT_ID" # TODO: (!) get from Libchat. + result = client.libchatCtx.getInstallationName() proc listConversations*(client: ChatClient): seq[Conversation] = diff --git a/vendor/libchat b/vendor/libchat index a9ca4ff..e0632cd 160000 --- a/vendor/libchat +++ b/vendor/libchat @@ -1 +1 @@ -Subproject commit a9ca4ffb7de90ea4cd269350c189c19fb78a2589 +Subproject commit e0632cdf8b6931284db217b405b820988a444d2c