Commit b66f7e7014

b66f7e7014368abb3ec4507e9a6caa96980fa5bd

parent: cc423cabd1

Unsigned

Darafei Praliaskouski <me@komzpa.net> · 2026-08-01 02:19 UTC
committer: <strk@kbt.io>

fix: advertise and consume native uploads

Layout: unified · split

src/commands/matrix_upload.rs +4 −1
@@ -416,7 +416,10 @@ impl CommandRunCallback for MatrixUploadCommand {
416 ), 416 ),
417 } 417 }
418 418
419 ReturnCode::Ok 419 // This hook implements the complete command. Letting WeeChat continue
420 // would run the same input through normal command dispatch as well and
421 // print a misleading "Unknown command" after a handled upload step.
422 ReturnCode::OkEat
420 } 423 }
421} 424}
422 425
src/room/mod.rs +1
@@ -1175,6 +1175,7 @@ impl MatrixRoom {
1175 1175
1176 buffer.set_localvar("room_id", self.room_id.as_str()); 1176 buffer.set_localvar("room_id", self.room_id.as_str());
1177 buffer.set_localvar("thread_root", thread_root.as_str()); 1177 buffer.set_localvar("thread_root", thread_root.as_str());
1178 buffer.set_localvar("matrix_upload_v1", "1");
1178 buffer.set_title(&format!( 1179 buffer.set_title(&format!(
1179 "Thread {} in {}", 1180 "Thread {} in {}",
1180 thread_root, room_short_name 1181 thread_root, room_short_name