Skip to content

Commit 0e1eeb5

Browse files
committed
Fix the bugs I introduced in the last version
1 parent 318ff58 commit 0e1eeb5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "matrix-notepad",
3-
"version": "0.1.6",
3+
"version": "0.1.7",
44
"description": "Store & collaborate on text files over the Matrix protocol",
55
"author": "Nathan Pennie",
66
"license": "GPL-3.0",

plugins/matrix.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@ export default ({ store }) => {
3737
const isync_filter = await client.createFilter({
3838
room: {
3939
timeline: {
40-
limit: 1,
40+
limit: 50,
4141
types: [
4242
'm.room.create',
4343
'm.room.name',
4444
'm.room.topic',
4545
'm.room.avatar',
46-
'm.room.aliases'
46+
'm.room.aliases',
47+
insert_event,
48+
remove_event
4749
]
4850
},
4951
state: {
@@ -273,7 +275,7 @@ export default ({ store }) => {
273275
if (n - replay_events.length - new_msgs > 0) {
274276
// If we need even more, fetch some using forward pagination
275277
await client.paginateEventTimeline(room_obj.getLiveTimeline(), {
276-
backwards: true,
278+
backwards: false,
277279
limit: n - replay_events.length - new_msgs
278280
})
279281
}

0 commit comments

Comments
 (0)