Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix Ruby SDK
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Olofsson
Matrix Ruby SDK
Commits
9b2afb66
Verified
Commit
9b2afb66
authored
2 years ago
by
Alexander Olofsson
Browse files
Options
Downloads
Patches
Plain Diff
bot: Slight improvement to sync_token filter
parent
955a1e9b
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/matrix_sdk/bot/base.rb
+5
-4
5 additions, 4 deletions
lib/matrix_sdk/bot/base.rb
with
5 additions
and
4 deletions
lib/matrix_sdk/bot/base.rb
+
5
−
4
View file @
9b2afb66
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment