Commit b66f7e7014
Unsigned
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 | 1176 | buffer.set_localvar("room_id", self.room_id.as_str()); |
| 1177 | 1177 | buffer.set_localvar("thread_root", thread_root.as_str()); |
| 1178 | buffer.set_localvar("matrix_upload_v1", "1"); | |
| 1178 | 1179 | buffer.set_title(&format!( |
| 1179 | 1180 | "Thread {} in {}", |
| 1180 | 1181 | thread_root, room_short_name |