mirror of
https://github.com/logos-messaging/logos-chat.git
synced 2026-03-15 19:43:06 +00:00
Add installation name
This commit is contained in:
parent
7a3592d7de
commit
1c1fa559b4
@ -77,7 +77,7 @@ proc newClient*(ds: WakuClient, ephemeral: bool = true, installation_name: strin
|
|||||||
|
|
||||||
var q = QueueRef(queue: newAsyncQueue[ChatPayload](10))
|
var q = QueueRef(queue: newAsyncQueue[ChatPayload](10))
|
||||||
var c = ChatClient(
|
var c = ChatClient(
|
||||||
libchatCtx: newConversationsContext(),
|
libchatCtx: newConversationsContext(installation_name),
|
||||||
ds: ds,
|
ds: ds,
|
||||||
inboundQueue: q,
|
inboundQueue: q,
|
||||||
isRunning: false,
|
isRunning: false,
|
||||||
@ -97,7 +97,7 @@ proc newClient*(ds: WakuClient, ephemeral: bool = true, installation_name: strin
|
|||||||
#################################################
|
#################################################
|
||||||
|
|
||||||
proc getId*(client: ChatClient): string =
|
proc getId*(client: ChatClient): string =
|
||||||
result = "PLACEHOLDER_CLIENT_ID" # TODO: (!) get from Libchat.
|
result = client.libchatCtx.getInstallationName()
|
||||||
|
|
||||||
|
|
||||||
proc listConversations*(client: ChatClient): seq[Conversation] =
|
proc listConversations*(client: ChatClient): seq[Conversation] =
|
||||||
|
|||||||
2
vendor/libchat
vendored
2
vendor/libchat
vendored
@ -1 +1 @@
|
|||||||
Subproject commit a9ca4ffb7de90ea4cd269350c189c19fb78a2589
|
Subproject commit e0632cdf8b6931284db217b405b820988a444d2c
|
||||||
Loading…
x
Reference in New Issue
Block a user