fix typos/refactor errors
This commit is contained in:
parent
65d02072c8
commit
e2dd9b9f77
1 changed files with 2 additions and 2 deletions
|
@ -167,11 +167,11 @@ export class RoomViewModel extends ViewModel {
|
|||
async _sendFile() {
|
||||
let file;
|
||||
try {
|
||||
file = this.platform.openFile();
|
||||
file = await this.platform.openFile();
|
||||
} catch (err) {
|
||||
return;
|
||||
}
|
||||
const attachment = this._room.uploadAttachment(file.name, file.blob);
|
||||
const attachment = this._room.uploadAttachment(file.blob, file.name);
|
||||
const content = {
|
||||
body: file.name,
|
||||
msgtype: "m.file",
|
||||
|
|
Reference in a new issue