Skip to content
Snippets Groups Projects
Verified Commit 9b2afb66 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

bot: Slight improvement to sync_token filter

parent 955a1e9b
Branches master
No related tags found
No related merge requests found
...@@ -87,7 +87,6 @@ module MatrixSdk::Bot ...@@ -87,7 +87,6 @@ module MatrixSdk::Bot
self.class.command?(command, **params) self.class.command?(command, **params)
end end
# Access settings defined with Base.set # Access settings defined with Base.set
def settings def settings
self.class.settings self.class.settings
...@@ -109,10 +108,13 @@ module MatrixSdk::Bot ...@@ -109,10 +108,13 @@ module MatrixSdk::Bot
/<internal:/ # internal in ruby >= 1.9.2 /<internal:/ # internal in ruby >= 1.9.2
].freeze ].freeze
# A filter that should only result in a valid sync token
EMPTY_BOT_FILTER = { EMPTY_BOT_FILTER = {
presence: { types: [] },
account_data: { types: [] }, account_data: { types: [] },
event_fields: [],
presence: { types: [] },
room: { room: {
account_data: { types: [] },
ephemeral: { types: [] }, ephemeral: { types: [] },
state: { state: {
types: [], types: [],
...@@ -120,8 +122,7 @@ module MatrixSdk::Bot ...@@ -120,8 +122,7 @@ module MatrixSdk::Bot
}, },
timeline: { timeline: {
types: [] types: []
}, }
account_data: { types: [] }
} }
}.freeze }.freeze
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment