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]; 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 +