element-hq / element-android

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

Direct Messages doesn't match "People" on Element Web #2934

Closed freaktechnik closed 2 years ago

freaktechnik commented 3 years ago

Describe the bug A couple of "people" rooms on Element Web show up under the normal rooms tab in Element for Android. The hallmark for those rooms is that they were created by a bridge and as such, have three accounts in their history, because the bridge copied in some message history. As a side effect of being classified as room and not direct message (I assume) the rooms don't get an icon on Android.

To Reproduce Steps to reproduce the behavior:

  1. Create new DM room with whatsapp bridge (mautrix-whatsapp, in my case I created them with the pm command to the bridge bot in element web)
  2. Wait for the bridge to backfill history
  3. Room shows up under "People" on Element Web

Expected behavior Room shows up under "Direct Messages" in Element for Android, since Element Web sees it as "People" room. Essentially, I'd expect both clients to classify the rooms the same.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context

I have double-puppeting in the bridge enabled/authenticated. I'll happily dig into the roomstate etc. with guidance.

freaktechnik commented 3 years ago

It turns out doing /converttodm in Element Web moves the room to the appropriate section on Android without any change to the room's location in Element Web.

SimonBrandner commented 3 years ago

@freaktechnik, for the change caused by /converttodm or /converttoroom to be visible in Element Web you might need to refresh the page... It should work then, is that the case for you?

freaktechnik commented 3 years ago

I'm fine with what element web is displaying, since this is an android issue where my goal was to have a room shown under "people" to be shown under DMs on android.

SimonBrandner commented 3 years ago

Oh, I see, sorry, I got a little confused

marcquark commented 3 years ago

i just ran into the same issue. /converttodm fixes the problem, but where does this inconsistency come from? it's confusing as a user to see something different on mobile than on desktop or vice versa

pvagner commented 3 years ago

It would be nice if /converttodm was available on android as well. I have created a portal to private chat using mautrix-facebook. On both element-web and element-android that room has been displayed under rooms executing /converttodm it moved to the expected spot on both - Direct messages on android and People on element-web. If only /converttodm command was available on element-android as well so I can fix it from within element-android in the future.

subiol commented 3 years ago

@pvagner I have opened a feature request exactly for that: https://github.com/vector-im/element-android/issues/3533

abmantis commented 2 years ago

I can confirm this issue (I'm also using the mautrix-whatsapp bridge). Some rooms show up in the "rooms" in the Android app, but show on "People" in the web app.

bmarty commented 2 years ago

(related: #3533)