Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New DMs not always marked as such #3333

Open
0x1a8510f2 opened this issue May 13, 2021 · 6 comments
Open

New DMs not always marked as such #3333

0x1a8510f2 opened this issue May 13, 2021 · 6 comments
Assignees
Labels
A-DMs A-Sync O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Something isn't working: bugs, crashes, hangs and other reported problems X-Needs-Investigation

Comments

@0x1a8510f2
Copy link

Describe the bug

Sometimes when creating a DM via Element Android, it is not actually marked as a DM, which means it sticks around in the rooms part of the app. I have noticed it this time when pressing the "Direct message" button in a user's room profile.

To Reproduce

Steps to reproduce the behavior:

  1. Go to a user's profile in a room
  2. Click on "Direct message"
  3. Wait for the DM to be created (actually, some feedback here would be nice)
  4. See that what was created is in fact a normal room not a DM

Expected behavior

The room should be marked as a DM in all cases

Smartphone (please complete the following information):

  • OS: Android 10

Additional context

  • App version and store: 1.1.7 PlayStore Beta
  • Homeserver: an-atom-in.space

Not sure if reproducible 100% of the time but happened to me around 2 times now total (bearing in mind that I don't open a lot of DMs).

Also, if anyone can tell me how to convert said room to a DM, that would be appreciated :D

@duncanturk
Copy link
Contributor

I think there is no GUI-way to convert a room to a DM.

If you have some technical knowledge you can convert a room using curl (or something else):

  1. You can pull your current list of DMs using curl -H"Authorization: Bearer <login_token>" -XGET https://<homeserver_domain>/_matrix/client/r0/user/<url_encoded_matrix_id>/account_data/m.direct > directs. You can find your login_token on element-web/desktop in "all settings"->"help & about"->scroll to bottom. matrix id is you full id, e.g.: @duncanturk:synapse.duncanturk.com -> %40duncanturk%3Asynapse.duncanturk.com.
  2. make a backup of the received file in case something gets screwed up
  3. Add your user-room pair to the list. Room and user ID can be found in element-web/desktop in the room details an room member list
  4. write back your changes using curl -H"Authorization: Bearer <login_token>" -XPUT https://<homeserver_domain>/_matrix/client/r0/user/<url_encoded_matrix_id>/account_data/m.direct -d @directs

@0x1a8510f2
Copy link
Author

@duncanturk

I think there is no GUI-way to convert a room to a DM.

Yeah, I believe there used to be one but got removed :(

As for those steps, I did use cURL as recommended and they worked great. Thanks! :D

@ganfra ganfra self-assigned this Jun 3, 2021
@panicbit
Copy link

panicbit commented Sep 30, 2021

Element Web has a command to convert a room into a DM: /converttodm (there's also /converttoroom for the inverse).

@bmarty
Copy link
Member

bmarty commented Mar 23, 2022

(Will be handled by #3533)

@ShadowJonathan
Copy link
Contributor

(Will be handled by #3533)

Note: that is only a workaround, i think the root problem from this issue is related to one in element-web; element-hq/element-web#12420

It's probably related to syncing the m.direct tag, which has always been flaky for my feeling.

@ouchadam ouchadam added T-Defect Something isn't working: bugs, crashes, hangs and other reported problems X-Needs-Investigation A-DMs A-Sync S-Major Severely degrades major functionality or product features, with no satisfactory workaround O-Occasional Affects or can be seen by some users regularly or most users rarely labels May 27, 2022
@ouchadam
Copy link
Contributor

ouchadam commented May 27, 2022

interestingly, the time I experienced this, a clear cache didn't help which makes me believe there's a bug in the accumulation of the room type as other clients were seemingly unaffected (haven't been able to reproduce for a while though)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-DMs A-Sync O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Something isn't working: bugs, crashes, hangs and other reported problems X-Needs-Investigation
Projects
None yet
Development

No branches or pull requests

7 participants