element-x-ios icon indicating copy to clipboard operation
element-x-ios copied to clipboard

Room sort does not work as expected

Open Avi0n opened this issue 1 year ago • 7 comments

Steps to reproduce

  1. Tap People filter
  2. See that the list is empty even though you have DMs
  3. Clear filters and tap Rooms
  4. See that DMs are included in the Rooms list
  5. Clear filters and tap Favourites
  6. See that the list is empty even though you have Favorites

Outcome

What did you expect?

To see my DMs when tapping the People filter

What happened instead?

No DMs shown.

Your phone model

iPhone 15 Pro Max

Operating system version

iOS 18

Application version

1.8.0 (122)

Homeserver

matrix.org

Will you send logs?

Yes

Avi0n avatar Sep 11 '24 18:09 Avi0n

Forced use of Proxy in Dev settings and this behavior still exists. So maybe not related to SSS.

Avi0n avatar Sep 11 '24 20:09 Avi0n

Forced use of Proxy in Dev settings and this behavior still exists. So maybe not related to SSS.

Just to confirm, did you log out and back in again after changing the setting?

pixlwave avatar Sep 12 '24 07:09 pixlwave

Yes, I did. I also confirmed it was using the sliding sync proxy via dev settings.

I just submitted another set of logs with a screenshot attached.

Avi0n avatar Sep 12 '24 07:09 Avi0n

Out of interest, are your DMs still shown in the People section on other apps like Element iOS or Element Web?

pixlwave avatar Sep 12 '24 08:09 pixlwave

Yes, DMs show correctly when using the People filter on Element iOS and Desktop.

Avi0n avatar Sep 12 '24 08:09 Avi0n

FYI I tried this on EXA 0.5.3 (40005030) and had the exact same issue.

Looks like it's https://github.com/element-hq/element-x-android/issues/3074

Avi0n avatar Sep 12 '24 16:09 Avi0n

Favorites are broken for me, people works fine

Kimiblock avatar Sep 14 '24 07:09 Kimiblock

@Avi0n is this ticket still relevant?

I'm seeing quite a few m.direct errors in your logs

2024-09-11T17:37:12.661848Z WARN matrix_sdk_base::client: Failed to deserialize a global account data event: leading sigil is incorrect or missing at line 1 column 2807 event_type="m.direct" | crates/matrix-sdk-base/src/client.rs:683 | spans: sync_once > handle_response > handle_account_data

It's supposed to be a dictionary of user identifiers to room indentifiers e.g.

{
  "type": "m.direct",
  "content": {
    "@user:homeserver.net" : ["!room:homeserver.net"]
    ...
  }
}

stefanceriu avatar Feb 18 '25 07:02 stefanceriu

Similar question for you @Kimiblock I guess, are your favorites working properly now? If not are there any interesting "tag" related warnings about them?

Favorites are stored as tag on each room's account data e.g.

{
  "type": "m.tag",
  "content": {
    "tags": {
      "m.favourite": {}
    }
  }
}

stefanceriu avatar Feb 18 '25 07:02 stefanceriu

Yeah it is working now. I think it’s after migrating to SSS that things got fixed. Thanks!

Kimiblock avatar Feb 18 '25 07:02 Kimiblock

@Avi0n is this ticket still relevant?

No, I fixed this by using /devtools on web and removing the malformed m.direct. Filters have been working as expected since then.

Avi0n avatar Feb 18 '25 07:02 Avi0n

Perfect, thank you!

stefanceriu avatar Feb 18 '25 07:02 stefanceriu