From b9392aa0849419f0657010ba2b4a08542021df57 Mon Sep 17 00:00:00 2001 From: Igor Fedorchuk Date: Mon, 16 Jan 2023 14:43:21 +0300 Subject: [PATCH 1/2] add _directUserId to MXRoomSummary hash function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Игорь Николаев --- MatrixSDK/Data/MXRoomSummary.m | 1 + 1 file changed, 1 insertion(+) diff --git a/MatrixSDK/Data/MXRoomSummary.m b/MatrixSDK/Data/MXRoomSummary.m index 5ebedcc1d7..96d7a3241a 100644 --- a/MatrixSDK/Data/MXRoomSummary.m +++ b/MatrixSDK/Data/MXRoomSummary.m @@ -1045,6 +1045,7 @@ - (NSUInteger)hash NSUInteger prime = 2; NSUInteger result = 1; + result = prime * result + [_directUserId hash]; result = prime * result + [_roomId hash]; result = prime * result + [_roomTypeString hash]; result = prime * result + [_avatar hash]; From 46bd0b0225773be5d46233e2ee46d9633a67dfe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=9D=D0=B8=D0=BA=D0=BE?= =?UTF-8?q?=D0=BB=D0=B0=D0=B5=D0=B2?= Date: Tue, 17 Jan 2023 15:37:51 +0300 Subject: [PATCH 2/2] add changelog --- changelog.d/pr-1683.change | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelog.d/pr-1683.change diff --git a/changelog.d/pr-1683.change b/changelog.d/pr-1683.change new file mode 100644 index 0000000000..4254a900a2 --- /dev/null +++ b/changelog.d/pr-1683.change @@ -0,0 +1,2 @@ +NikolaevIV: add _directUserId to MXRoomSummary hash function +