-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Stop synapse from saving messages in device_inbox for hidden devices. #10097
Changes from 2 commits
0debae7
e403466
da8520d
af12176
1718981
7066cc2
cd661dd
9258d1f
ac31155
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fix a bug which is stopping synapse from storing messages in `device_inbox` for hidden devices. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| /* Copyright 2021 The Matrix.org Foundation C.I.C | ||
anoadragon453 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| * | ||
anoadragon453 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| --- Remove messages to hidden devices from the device_inbox table. | ||
| --- This schould run as the last task, it may take a little bit longer | ||
| --- to finish. | ||
|
|
||
| DELETE FROM device_inbox WHERE device_id IN (SELECT device_id FROM devices WHERE hidden = TRUE); | ||
|
||
Uh oh!
There was an error while loading. Please reload this page.