Skip to content
Snippets Groups Projects
Unverified Commit 804d097a authored by Timo's avatar Timo
Browse files

fix: wake up /sync for typing events

parent c092f060
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment