core: update api to get/register tokens (#751)

This commit is contained in:
Evgeny Poberezkin
2022-06-25 17:02:16 +01:00
committed by GitHub
parent 313bc65457
commit 5367ffe418
6 changed files with 17 additions and 16 deletions
+1
View File
@@ -162,6 +162,7 @@ responseToView testView = \case
CRNewContactConnection _ -> []
CRContactConnectionDeleted PendingContactConnection {pccConnId} -> ["connection :" <> sShow pccConnId <> " deleted"]
CRNtfTokenStatus status -> ["device token status: " <> plain (smpEncode status)]
CRNtfToken _ status mode -> ["device token status: " <> plain (smpEncode status) <> ", notifications mode: " <> plain (strEncode mode)]
CRNtfMessages {} -> []
CRMessageError prefix err -> [plain prefix <> ": " <> plain err]
CRChatError e -> viewChatError e