mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-06-08 08:43:03 +00:00
notification server TRPL command (#420)
* notification server TRPL command * test * client methods * only remove current token registration
This commit is contained in:
committed by
GitHub
parent
ef4d4c9e16
commit
f10e3f697c
@@ -42,6 +42,9 @@ ntfCheckToken c pKey tknId =
|
||||
NRTkn stat -> pure stat
|
||||
_ -> throwE PCEUnexpectedResponse
|
||||
|
||||
ntfReplaceToken :: NtfClient -> C.APrivateSignKey -> NtfTokenId -> DeviceToken -> ExceptT ProtocolClientError IO ()
|
||||
ntfReplaceToken c pKey tknId token = okNtfCommand (TRPL token) c pKey tknId
|
||||
|
||||
ntfDeleteToken :: NtfClient -> C.APrivateSignKey -> NtfTokenId -> ExceptT ProtocolClientError IO ()
|
||||
ntfDeleteToken = okNtfCommand TDEL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user