From b2dce92f3f7538bffee91ba13e3323530c07a77f Mon Sep 17 00:00:00 2001 From: Pascal Precht <445106+PascalPrecht@users.noreply.github.com> Date: Mon, 24 Oct 2022 10:45:41 +0200 Subject: [PATCH] fix(Communities): correct query params order when updating community settings Turns out `UpdateCommunitySettings()` has never worked. Two parameters where in the wrong order, cause the SQL statement to never find the row it has to update. --- protocol/communities/persistence.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/communities/persistence.go b/protocol/communities/persistence.go index b8dea6115..7ef1cebce 100644 --- a/protocol/communities/persistence.go +++ b/protocol/communities/persistence.go @@ -686,8 +686,8 @@ func (p *Persistence) UpdateCommunitySettings(communitySettings CommunitySetting WHERE community_id = ?`, communitySettings.HistoryArchiveSupportEnabled, communitySettings.HistoryArchiveSupportEnabled, - communitySettings.CommunityID, communitySettings.Clock, + communitySettings.CommunityID, ) return err }