feat(fediverse): media posting for e2ee rooms [kakashi]
feat(fediverse): direct messaging and follower-only posting [kakashi] feat(config): emoji customization available in config [kakashi] fix(cmd): unroll by text [kakashi] refactor(reacts): timeline minimum +4 events => timeline minimum +1 events [kakashi] chore(deps): upgrade matrix-js-sdk, olm, qs chore(package): bump version
This commit is contained in:
parent
5924009154
commit
8e2ce18f26
11 changed files with 333 additions and 476 deletions
3
auth.js
3
auth.js
|
@ -6,7 +6,6 @@ const matrixTokenLogin = async () => {
|
|||
accessToken: matrix.auth.access_token,
|
||||
userId: matrix.auth.user_id,
|
||||
deviceId: matrix.auth.device_id,
|
||||
sessionStore: new sdk.WebStorageSessionStore(localStorage),
|
||||
cryptoStore: new LocalStorageCryptoStore(localStorage),
|
||||
});
|
||||
matrixClient.initCrypto()
|
||||
|
@ -26,7 +25,7 @@ const matrixTokenLogin = async () => {
|
|||
module.exports.matrixTokenLogin = matrixTokenLogin;
|
||||
|
||||
module.exports.getMatrixToken = async () => {
|
||||
matrixClient = sdk.createClient(config.matrix.domain);
|
||||
matrixClient = sdk.createClient({ baseUrl: config.matrix.domain });
|
||||
matrixClient.loginWithPassword(config.matrix.user, config.matrix.password)
|
||||
.then((response) => {
|
||||
matrix.auth = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue