allow to set account details, cleanup
Change-Id: I6dd6589f78329e0113ee38fbaa8535abd6b37589
diff --git a/JamiDaemon.js b/JamiDaemon.js
index 8c23c79..3314516 100755
--- a/JamiDaemon.js
+++ b/JamiDaemon.js
@@ -155,7 +155,7 @@
}
const conversation = account.getConversation(conversationId)
if (conversation) {
- conversation.addLoadedMessages(messages)
+ //conversation.addLoadedMessages(messages)
const request = conversation.requests[id]
if (request) {
request.resolve(messages)
@@ -261,7 +261,7 @@
return this.mapToJs(this.dring.getAccountDetails(accountId))
}*/
setAccountDetails(accountId, details) {
- this.dring.setAccountDetails(accountId, mapToNative(details))
+ this.dring.setAccountDetails(accountId, this.mapToNative(details))
}
getAudioOutputDeviceList() {
return JamiDaemon.vectToJs(this.dring.getAudioOutputDeviceList())
@@ -441,7 +441,8 @@
mapToNative(map){
const ret = new this.dring.StringMap()
- map.forEach((value, key) => ret.set(key, value))
+ for (const [key, value] of Object.entries(map))
+ ret.set(key, value)
return ret
}
}