Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
conduwuit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
🥺
conduwuit
Commits
804d097a
Unverified
Commit
804d097a
authored
4 years ago
by
Timo
Browse files
Options
Downloads
Patches
Plain Diff
fix: wake up /sync for typing events
parent
c092f060
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/database.rs
+3
-3
3 additions, 3 deletions
src/database.rs
with
3 additions
and
3 deletions
src/database.rs
+
3
−
3
View file @
804d097a
...
...
@@ -129,7 +129,6 @@ pub fn load_or_create(config: &Config) -> Result<Self> {
pub
async
fn
watch
(
&
self
,
user_id
:
&
UserId
,
device_id
:
&
DeviceId
)
{
let
userid_bytes
=
user_id
.to_string
()
.as_bytes
()
.to_vec
();
let
mut
userid_prefix
=
userid_bytes
.clone
();
userid_prefix
.push
(
0xff
);
...
...
@@ -153,7 +152,8 @@ pub async fn watch(&self, user_id: &UserId, device_id: &DeviceId) {
// Events for rooms we are in
for
room_id
in
self
.rooms
.rooms_joined
(
user_id
)
.filter_map
(|
r
|
r
.ok
())
{
let
mut
roomid_prefix
=
room_id
.to_string
()
.as_bytes
()
.to_vec
();
let
roomid_bytes
=
room_id
.to_string
()
.as_bytes
()
.to_vec
();
let
mut
roomid_prefix
=
roomid_bytes
.clone
();
roomid_prefix
.push
(
0xff
);
// PDUs
...
...
@@ -164,7 +164,7 @@ pub async fn watch(&self, user_id: &UserId, device_id: &DeviceId) {
self
.rooms
.edus
.roomid_lastroomactiveupdate
.watch_prefix
(
&
roomid_
prefix
),
.watch_prefix
(
&
roomid_
bytes
),
);
futures
.push
(
...
...
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