generated from array-in-a-matrix/matrix-bot-template
rm cryptoStore it is ICryptoStorageProvider
This commit is contained in:
parent
c71a8203bb
commit
7619024098
|
@ -1,8 +1,7 @@
|
|||
# Things here have been tested to work
|
||||
|
||||
import nimbotsdk/matrixTypes
|
||||
export ICryptoStorageProvider, Storage, CryptoStore, Client, Content,
|
||||
Unsigned, Event, Filter, Appservice
|
||||
export ICryptoStorageProvider, Storage, Client, Content, Unsigned, Event, Filter, Appservice
|
||||
|
||||
import nimbotsdk/MatrixAuth
|
||||
export newMatrixAuth, passwordLogin
|
||||
|
@ -23,4 +22,7 @@ import nimbotsdk/SimpleFsStorageProvider
|
|||
export newSimpleFsStorageProvider
|
||||
|
||||
import nimbotsdk/RichRepliesPreprocessor
|
||||
export newRichRepliesPreprocessor
|
||||
export newRichRepliesPreprocessor
|
||||
|
||||
import nimbotsdk/RustSdkCryptoStorageProvider
|
||||
export RustSdkCryptoStorageProvider
|
|
@ -4,7 +4,7 @@ import matrixTypes
|
|||
|
||||
proc newMatrixClient*(homeserver, token: cstring): Client {.importjs: "new MatrixClient(#, #)".}
|
||||
proc newMatrixClient*(homeserver, token: cstring, storage: Storage): Client {.importjs: "new MatrixClient(#, #, #)".}
|
||||
proc newMatrixClient*(homeserver, token: cstring, storage: Storage, cryptoStore: CryptoStore): Client {.importjs: "new MatrixClient(#, #, #, #)".}
|
||||
proc newMatrixClient*(homeserver, token: cstring, storage: Storage, cryptoStore: ICryptoStorageProvider): Client {.importjs: "new MatrixClient(#, #, #, #)".}
|
||||
|
||||
proc onRoomMessage*(client: Client, callback: proc(roomId: cstring, event: Event)) {.importjs: "#.on('room.message', #)".}
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@ type ICryptoStorageProvider* = ref object
|
|||
|
||||
type Storage* = ref object
|
||||
|
||||
type CryptoStore* = ref object
|
||||
|
||||
type Client* = ref object
|
||||
homeserverUrl*: cstring
|
||||
accessToken*: cstring
|
||||
|
|
Loading…
Reference in a new issue