Comments (1)
This issue actually affects more that just the reset cross-signing key feature.
If the first login to the account is made with Element (typically when registering), it sends the same request to configure the initial cross-signing keys. Due to the malformed request payload, the setup fails, although Element reports it as properly enabled in the settings. Consequently, the session is reported as not verified (red shield) in encrypted chats, and any keys verification with other accounts is thus prevented.
For people stumbled upon this issue and looking for a workaround, you can add a rule in your nginx reverse proxy (if you use one) to fix the JSON payload. You need lua support with the cjson library. Here is an example configuration snippet:
location = /_matrix/client/unstable/keys/device_signing/upload {
if ($request_method = POST) {
access_by_lua_block {
local cjson = require "cjson"
ngx.req.read_body()
local data = cjson.decode(ngx.req.get_body_data())
if data["auth"] ~= nil and data.auth["user"] ~= nil then
data.auth.identifier = {
type = "m.id.user",
user = data.auth.user,
};
ngx.req.set_body_data(cjson.encode(data))
end
}
}
proxy_pass http://<CONDUIT ENDPOINT>$request_uri;
# ...
}
from element-android.
Related Issues (20)
- 语音通话
- Double file extensions get mutated improperly
- [SDK] Voice call
- SSL Error
- Getting custom keys onTimeline updated Snapshot[SDK] HOT 1
- Element-Android session doesn't encrypt for a dehydrated device HOT 2
- Redacted messages are not grouped correctly
- Log devices sent to with /sendToDevice HOT 4
- Element android slowly leaks into and fills system storage over time
- `formatted_body` is ignored for replies in a thread
- EA intercepts any link with `*.element.io` host, breaking OIDC flow on EXA
- [Release] Element Android v1.6.18 HOT 1
- Sign in button not localized
- Message keys not migrated from legacy to Rust store are not backed up
- Certain messages cause the app to crash
- [SSSS] User password is asked multiple times then the app crashes when trying to reset the recovery key. HOT 3
- Set targetSdk to 34
- Report user functionality does not show a confirmation dialog HOT 3
- Bridged "Answers" are not visible only on Android Version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from element-android.