Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

double message with messages modified #37

Open
silvolivi opened this issue Mar 23, 2021 · 4 comments
Open

double message with messages modified #37

silvolivi opened this issue Mar 23, 2021 · 4 comments

Comments

@silvolivi
Copy link

I used vector (android) for an internal server matrix (not federated), but when i modified a message with another client (element) in vector i saw double message (double event)

is the app not more updated?

@hrj
Copy link

hrj commented Mar 23, 2021

is the app not more updated?

Yup, I am not updating the app.

I used vector (android) for an internal server matrix (not federated), but when i modified a message with another client (element) in vector i saw double message (double event)

I don't know if the protocol has changed. If it hasn't changed, then such a basic problem shouldn't happen.

@silvolivi
Copy link
Author

idk either, but for php i use the event into "m.relates_to", "rel_type" => "m.replace", as for this array

$arupdate = array(
"format" => "org.matrix.custom.html",
"formatted_body" => $newtext
"body" => $newtext,
"msgtype" => "m.text",
"m.new_content" => array(
"format" => "org.matrix.custom.html",
"formatted_body" => $newtext,
"body" => $newtext,
"msgtype" => "m.text",
),
"m.relates_to" => array(
"event_id" => $old_message_id
"rel_type" => "m.replace",
)

and then i send within api rooms/$room/send/m.room.message?access_token=xxx

don't know if it can help you, but i hope you can fix it because the app is very helpful (mostly for download files, as element in first can't give downloaded files for system - and puts only into an own directory)

@fuck-shithub
Copy link

If I remember correctly, Riot Android, including this fork, always behaved like this when it comes to message edits.

don't know if it can help you, but i hope you can fix it because the app is very helpful (mostly for download files, as element in first can't give downloaded files for system - and puts only into an own directory)

Yeah, downloading files on Element can be annoying, as there's no button for downloading in file previews. But you can hold on a message containing the file, and then press "Save". That should work.

@silvolivi
Copy link
Author

silvolivi commented Mar 24, 2021 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants