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