Skip to content
Snippets Groups Projects
Commit 57c8c7a5 authored by Pierre Nicolas's avatar Pierre Nicolas :joy:
Browse files

conversation: implement getconversationpreferences

Change-Id: I61eb6bef77e2273b27679c10a026cc0065c9ec36
parent 4531e96c
No related branches found
No related tags found
No related merge requests found
...@@ -1132,6 +1132,16 @@ class AccountService( ...@@ -1132,6 +1132,16 @@ class AccountService(
JamiService.setConversationPreferences(accountId, conversationId, StringMap.toSwig(info)) JamiService.setConversationPreferences(accountId, conversationId, StringMap.toSwig(info))
} }
/**
* Daemon interface to get conversation preferences (color, emoji, etc.)
* @param accountId account id
* @param conversationId conversation id
* @return map of preferences
*/
fun getConversationPreferences(accountId: String, conversationId: String): Map<String, String> {
return JamiService.getConversationPreferences(accountId, conversationId)
}
fun updateConversationInfo(accountId: String, conversationId: String, info: Map<String, String>) { fun updateConversationInfo(accountId: String, conversationId: String, info: Map<String, String>) {
JamiService.updateConversationInfos(accountId, conversationId, StringMap.toSwig(info)) JamiService.updateConversationInfos(accountId, conversationId, StringMap.toSwig(info))
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment