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 {
416416 ),
417417 }
418418
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
420423 }
421424}
422425
src/room/mod.rs +1
@@ -1175,6 +1175,7 @@ impl MatrixRoom {
11751175
11761176 buffer.set_localvar("room_id", self.room_id.as_str());
11771177 buffer.set_localvar("thread_root", thread_root.as_str());
1178 buffer.set_localvar("matrix_upload_v1", "1");
11781179 buffer.set_title(&format!(
11791180 "Thread {} in {}",
11801181 thread_root, room_short_name