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

Message in a thread is read and becomes unread when I refresh #25806

Closed
Tracked by #24392
andybalaam opened this issue Jul 14, 2023 · 3 comments · Fixed by matrix-org/matrix-js-sdk#3617
Closed
Tracked by #24392
Assignees
Labels
A-Notifications O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect

Comments

@andybalaam
Copy link
Contributor

Steps to reproduce

  1. In one of my rooms, see that a message in a thread is unread
  2. Read it by opening the thread (thread ID = $rvSXEitcjN-wHfkbVA4I6axdl80ArVeokgjBGT9C7Ys)
  3. See that the room is now marked as read
  4. Refresh the browser tab (or shut computer down and start it again the next day)

Outcome

What did you expect?

The thread and room are still read.

What happened instead?

The room is marked as unread and when I enter it, the same thread I read before is now marked as unread.

Debug info by using my new notification debugging scripts:

Receipts in the Client:

{
  "$acluXqYa7HFM1tPqVGVqSjBviG4qm7M3cOm5GFe9gCI": [
    {
      "userId": "@andybalaam:matrix.org",
      "type": "m.read",
      "data": {
        "ts": 1689337136953,
        "thread_id": "main"
      }
    }
  ]
}

(I.e. there are no receipts for this thread - or any other threads! - in the client)

Receipts in the Sync Accumulator:

{
  "$rpGhBd7nglSEMk5_CVK2kjPdb-WETOmM4lTh2IhoSaM": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1688398732178,
        "thread_id": "$LYYPLMc3iRSQuZ6YaUfIj-30yK1convYAJEk3LlkQbo"
      }
    }
  },
  "$WuH_GidOg31GaAvP2JgKprzDQqvx3_PZhex28QtFVqA": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1687347428244,
        "thread_id": "$3yGywlaEjJU1wMaCmESqwz5IwjdaCBl7ON13vQPaVqg"
      }
    }
  },
  "$-YVPMCUFkkj7d8DrtZvF9Wb0wcct-rJn7qBdZp22k8k": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1687945261689,
        "thread_id": "$jLIQlpX1yAjmGaNZNfwR1RDK8cqMgeZQj2IBvMVSGoY"
      }
    }
  },
  "$kOqP41vMhxlGc05m0Wjfq9mJB1LtZno_veA0l3iocwY": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1687768755091,
        "thread_id": "$IY0TMoeDo3y5MlCPAuIkjLgVRL04I1o5v1f8cQJH310"
      }
    }
  },
  "$3lRuZ7_lRVYuE733z0V5qUMRGTBrrKk2davv5M1-8No": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1685965198706
      }
    }
  },
  "$acluXqYa7HFM1tPqVGVqSjBviG4qm7M3cOm5GFe9gCI": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1689337136953,
        "thread_id": "main"
      }
    }
  },
  "$hR1Uivf4PLHWzZuXdfVL24QRO_qjoqOw8DMwnjV3W5s": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1689173055172,
        "thread_id": "$IKHp351RxbimhmgMv1EDagTAE6ALHAsLaEMgrTstOrg"
      }
    }
  },
  "$wGElnl-S15xebgrtBVRheqcvDKkOB4aXdbU8U_Vm1Pw": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1689075405768,
        "thread_id": "$SM8GzOBbWkuGBMw1HJvwB61j7iCmrHqaL5Jh914RPyo"
      }
    }
  },
  "$OHnn7Zw6PevcC7DTrC1u_alM_nVbWaES50SDEiM_UL0": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1687945250842,
        "thread_id": "$vJ4oTXb2pxJuDOx7HJ7dp0Ekw84oGX-bClZ6Ihtqanw"
      }
    }
  },
  "$alIwInSRJPiAHftrYiR6A_GkYUfMoYywRcx8L1fdLU4": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1687347436622,
        "thread_id": "$uuPlV0wHrX5xcJASI1Ri7qVPLUNqQMlcP9I1xy5tD9I"
      }
    }
  },
  "$IUWUsxwjlXANzOxsFGa1lu7qAMWxUuh0GhZepA7mfkY": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1687164436826,
        "thread_id": "$VvoLi5_2JgRubLGU3Tg9edNS5lzBLZcUmki1bGa0cLY"
      }
    }
  },
  "$i0nS3VNJRMJSIRoUPm_pqT-ShbC5TyiCz7sKNk4H8rE": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1688121329292,
        "thread_id": "$ZwLUDGEecSGkC3vfoOO7MYGSVueI8IbaP-TzVaxEkfo"
      }
    }
  },
  "$GWvPoiQKTW74Z_PdE9hjNPA5yHxnVE92rKGKVWHAsx0": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1688119634753,
        "thread_id": "$N-9EXK0g96yDWtoVt8LIdGKwPH-Z8H5uDbm5ToEuH3o"
      }
    }
  },
  "$km541ZUV7TRs0lTNeXqUHNXJOJacOgfiklK4dTiMmmg": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1684744389645,
        "thread_id": "$VhD41UtpUmNua_kyQw_94eHB3mdrWYZVlHcOFyvwNvU"
      }
    }
  },
  "$QiKGKlqUO5EvpOPVuhEEG9cP-Rbyym2dXK-rJzP_TX8": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1687438708216,
        "thread_id": "$jdyMMc9_UwOUF1BSRcGekTmiGQvl5kIswe-juMwiRvw"
      }
    }
  },
  "$2KAWXAB6UvGizAkLA6J9d5rAF7snQVxou-HlLq4cvws": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1688543228402,
        "thread_id": "$ksmYgm4_rr2PNDBLAtNREzoIGlDBbUsWDAE9fQurFN4"
      }
    }
  },
  "$9ugqza0TjWazitafuYuhgtFse6aYBPukXWVPar55DcE": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1686645141854,
        "thread_id": "$AdmJ9Ctr7aDTgsDpx-vA3YEBIUPfy88ue4QJhQCy-og"
      }
    }
  },
  "$NpDMXOBzEEhaydphB3YeoMwlZiyLy9wd6t9-h5KSPQw": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1686917744892,
        "thread_id": "$CYEiKNxVy_J3k41w8_SKyqKs1kQK7JaxXFCv2DEdkm4"
      }
    }
  },
  "$J71Wq-hcR05opVtyD5IY9H7kS7DxLJNkMi-RlYSR5IQ": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1688119693297,
        "thread_id": "$-Q-FTVdtoZA6BPvFyf7adHTkmFguHvcr5ZWn7GGzVh8"
      }
    }
  },
  "$Z2ZC93-n84FECAr8abHFyjUEp1MDXGVJt8NAr4oS3Gw": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1687438703610,
        "thread_id": "$tDUU1uE0HRWxidYa-Y35-HkJL6z1vvsbGRowRfdyjxk"
      }
    }
  },
  "$xFKqkj_4XCuC58-A9QZcW3gDWm5JzEzXZcOafVKyag4": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1687438693301,
        "thread_id": "$3uzQ5r0iNeYtUZXuxZhpLuHme-IHqck3umNX75zJRKM"
      }
    }
  },
  "$XTM2_o8YfDHbJrZoIQ8PJj2Z-_td-KN_5sAFjlTT3Us": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1686645159507,
        "thread_id": "$zghgVEsj4Jx0HWk46GBLbIr8_0oxIUy3KQQMJiteD2o"
      }
    }
  },
  "$G0xV9zbbf1W5RxPo-N4doANHR1CL6u-6mhpt7IuOtWo": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1685014466261,
        "thread_id": "$ajN2l3A2VyP8bMq4_TLydR7K9hhwGWOt0VfKHU9oDoc"
      }
    }
  },
  "$zL8-GcjGG69sBe5NQkwg6vb8vUJRum1Xa0TUS0ntgqE": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1685014477362,
        "thread_id": "$8Trx4R1IztMDLrFmom9rpLuZSKbeIzY32eX_VEjdOXI"
      }
    }
  },
  "$nSXXMGMuPyNwopF5a2aqKqABIYGOB_a5mXE_kW9eTgQ": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1686645162995,
        "thread_id": "$a4qiSF3lz9GBi4aM-HuRSYXbhPVwHp2K91lyW1ObV30"
      }
    }
  },
  "$1H_L6TKMKSj2AX53QAJWJEjgEs2ZWx020qjRSzbuN4I": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1686645133242,
        "thread_id": "$Mag5_aYzFOmYmqI2dRnKMdQym2TjOcAh8x1SOeAiZ70"
      }
    }
  },
  "$F2BKw4G0cGraipm2h5ZQg_RSdC6rcxivIiglEgyluCY": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1686645188158,
        "thread_id": "$xkP_9mICN-Aa60-5Fv0S-VQfmLa7EKgkfKeVdt7bcGQ"
      }
    }
  },
  "$c4fufynFfRh4PANXds8KqqIPTGCesxtDJ94LHHwc-1w": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1686645165909,
        "thread_id": "$gejQfSDKVOxv6xdBGcxUwpbz6eB20At_NH2f8iec1Ec"
      }
    }
  },
  "$d-WYPhmuGkzITGv3OmmxfiTiHSjGqiOzmZrWVXQk3XE": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1685014436740,
        "thread_id": "$5aPsSNX6jS85uiJsThY2QC2IIqNdkjmjNDMXp_aGTPU"
      }
    }
  },
  "$LxKK25VROJNnCbCGuGsx4-G3ESI5XHfcT3fYgVE-M1M": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1686645184292,
        "thread_id": "$lY3d9yJ5nU1OQIuTGnztrSxTPPOjTb63Kf5tNR_5NAY"
      }
    }
  },
  "$KBgZIglmi-yEP_tyIZzu9GCu5rB5jYOGgUrwlTN0AXo": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1686661174336,
        "thread_id": "$SGfAfZVtRYDKg6oiWwk59WdtTZrNPp2Mg41O7aGjkcQ"
      }
    }
  },
  "$hRUcZKRseCNMEWk_1FAaXtp9NKyGXYDSJ7VTIw4Rs_U": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1684744387506,
        "thread_id": "$YBEwsSGl-J5NR-qgRhcrCTvpMxTPIb90Yl7SOhSVFt4"
      }
    }
  },
  "$I6R5tU9-WsmaFoqWkXaHUuEhnb70SPnoOF8tRQ2W128": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1686645171798,
        "thread_id": "$Ii_urBiQWuvTyhaBQliiOPQfCPvk2bSp1bOeqZvnEv0"
      }
    }
  },
  "$wAZ5t306Cl1NNKl98CpZ5_TU24UMSs4vj8wWPNrAjck": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1684744385393,
        "thread_id": "$jHGhTHPNE6X_8OyH1dn8OuwYIrv33LlQ4CcN2AnpC4Q"
      }
    }
  },
  "$MYif5JIi4O44_zENWIycPtIgzLFJdi_UdRVG3ABFnoc": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1686645153514,
        "thread_id": "$7ffGbRa_bFmLdiToGARqNbHpoWgHFWSj1J80juyW6Fk"
      }
    }
  },
  "$2BIpVUAgNj-9vTcIbfeUkdiqztJAPoqPMME9Y0BMp8I": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1685014442646,
        "thread_id": "$Ux7pk9uyePwe9vapOfo6knIyvXi9eLkK5NcCty8kg8w"
      }
    }
  },
  "$l81n1jygK60aXdE_IGXJw403sWfVt0Tf7605HVV68Yk": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1679914731398,
        "thread_id": "$GBEEusNi6tVlq94X33T8-uymvRRmYUF1syb7n3GtdVQ"
      }
    }
  },
  "$YEB7AouDa2-pP9KKKJ4x2y-YfFxEIPNQ1E70iiDaVyA": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1686645149487,
        "thread_id": "$_7pBZzmHupy6StmSqrGHyIB1AmADIfqm1Eag0v9LGIk"
      }
    }
  },
  "$mQ1CgpkSp1CvUDxF_IiKSI0rHGoKJ2SbyK4HopUWbzk": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1684154706149,
        "thread_id": "$T-5UErhsaRncBMQjX0cVkFdi33s9nDTITxA0lo33e4I"
      }
    }
  },
  "$1HlQ1MlE4n4LkqTa-xu2e7K8mtMjV7HnpN8KnGEb3c4": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1686645177351,
        "thread_id": "$QDcL7wRWjfYgA7hkiIsRdZzWk10-u2XluI9OcrSJh2Q"
      }
    }
  },
  "$dTVWpRyUuxe0eJPlao5js5OfHgvrtu5kUyn6zDo-77s": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1684744382000,
        "thread_id": "$ZMsfjyRUIsgEI8h2SXjc42AEgftVrMW699AcQ5zWpgE"
      }
    }
  },
  "$rXYV_qSAcmNlStsSa3YZb9JDIzDk4_bSKDQAhTQhTIw": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1683708627984,
        "thread_id": "$n9n75PXaqalRwGH4MucfneA8XXXXJya3ia2NIssP0FA"
      }
    }
  },
  "$XEMS79Gu46yu16vDx4_qj5THL-fzO115mFZe2gQrMVs": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1686645139905,
        "thread_id": "$i1OKQ8t4INmAuk6SpC5vCHD8LDznvmW2IpCKfpu5I_4"
      }
    }
  },
  "$0HanAmktgiJGfb-Z40ig-U27LoyfsY_C6YMttCubexY": {
    "m.read": {
      "@andybalaam:matrix.org": {
        "ts": 1687945269117,
        "thread_id": "$hKxihuFjw2DDCe1EzbjjPkFR7SS_uYC7LFYNsr8hq3U"
      }
    }
  }
}

Then, after I read the thread, there is still no receipt in the Client:

{
"$acluXqYa7HFM1tPqVGVqSjBviG4qm7M3cOm5GFe9gCI": [
{
"userId": "@andybalaam:matrix.org",
"type": "m.read",
"data": {
"ts": 1689337136953,
"thread_id": "main"
}
}
]
}

but the dot is gone from the UI.

Operating system

Ubuntu 22.04

Browser information

Firefix 115.0.2

URL for webapp

https://develop.element.io

Application version

Element version: a84349f-react-77c3a89cbc14-js-0b193f466562 Olm version: 3.2.14

Homeserver

matrix.org

Will you send logs?

No

@andybalaam andybalaam self-assigned this Jul 14, 2023
@andybalaam andybalaam added S-Minor Impairs non-critical functionality or suitable workarounds exist O-Occasional Affects or can be seen by some users regularly or most users rarely labels Jul 14, 2023
@t3chguy t3chguy assigned t3chguy and unassigned andybalaam Jul 24, 2023
@Johennes
Copy link
Contributor

I'm still able to reproduce this in two rooms on today's nightly. It seems to happen very consistently now where before it was somewhat random. More details in https://github.com/matrix-org/element-web-rageshakes/issues/22262.

@Johennes Johennes reopened this Jul 25, 2023
@t3chguy
Copy link
Member

t3chguy commented Jul 31, 2023

If the room is encrypted then this may be resolved by matrix-org/matrix-js-sdk#3640

@t3chguy
Copy link
Member

t3chguy commented Aug 2, 2023

For me this was fixed by matrix-org/matrix-js-sdk#3640

@t3chguy t3chguy closed this as completed Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Notifications O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants