element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.36k stars 715 forks source link

Failed to encrypt message in room (message stays in red) #925

Open BillCarsonFr opened 4 years ago

BillCarsonFr commented 4 years ago

Can be fixed by clearing cache Need to investigate how it can happen (IN this case it's a dm other federation, with a slow one)

https://riot.im/bugreports/listing/2020-02-01/120437/logs-0000.log.gz

encryptEventContent() : Unable to encrypt Room was previously configured to use encryption, but is no longer. Perhaps the homeserver is hiding the configuration event.

anaskaejdar commented 4 years ago

I've had ones that don't resolve themselves when I clear cache.

zeratax commented 4 years ago

seemed like it didn't work for me in any room with a black shield, not federation involved for me

BillCarsonFr commented 4 years ago

I had this error again a few times always the same log

encryptEventContent() : Unable to encrypt Room was previously configured to use encryption, but is no longer. Perhaps the homeserver is hiding the configuration event.

BillCarsonFr commented 4 years ago

https://riot.im/bugreports/listing/2020-02-26/160613/

pwr22 commented 4 years ago

I've had ones that don't resolve themselves when I clear cache.

I seem to have this.

BillCarsonFr commented 4 years ago

-> https://riot.im/bugreports/listing/2020-04-03/100612/

pwr22 commented 4 years ago

I signed out, nuked cache and storage and now it works after signing back in anew.

NHAS commented 3 years ago

The only way I solved this for me was to sign out, uninstall element and reinstall. Just logging out resulted in the application crashing on startup.

vetko commented 3 years ago

I had the same issue previous week, it's fixed now on my side, but might help the devs debug/understand the root cause:

Up until the point we realized, that one of the desktop clients (of user 1) was outdated (I think it was 1.7.33, instead of 1.7.34 which is the latest at the moment). After getting rid of that client (and resetting both android clients again), the communication works again flawlessly since.

egtann commented 2 years ago

I ran into this issue. Messages in a 1-to-1 encrypted conversation suddenly wouldn't send from my up-to-date Android (Pixel 4) device. Clearing cache did not fix it. I logged out, uninstalled and reinstalled element and was able to send messages again.

This is OK for technical users who can search GitHub but is a showstopper for non-technical users.

forever8361 commented 2 years ago

我遇到了这个问题。一对一加密对话中的消息突然无法从我最新的 Android (Pixel 4) 设备发送。清除缓存并没有解决它。我注销,卸载并重新安装了元素,并且能够再次发送消息。

这对于可以搜索 GitHub 的技术用户来说是可以的,但对于非技术用户来说却是一个阻碍。

I have the same problem, but after logging out, uninstalling, installing and logging in, it still doesn't work

btittelbach commented 11 months ago

Right now, I also had this issue.

Going into Element's "Settings/General" and hitting "Clear Cache" did nothing to solve the problem. Worse, it deleted the undelivered messages, which I all had to type again after which sending still did not work

However, clearing the cache in Androids "App Info/Storage and Cache" of Element, immediately solved the problem and sent the pending messages

Version: 1.6.6 [40106062] (F-4fa634a2) Android 13