mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
fix typos/refactor errors
This commit is contained in:
parent
65d02072c8
commit
e2dd9b9f77
@ -167,11 +167,11 @@ export class RoomViewModel extends ViewModel {
|
|||||||
async _sendFile() {
|
async _sendFile() {
|
||||||
let file;
|
let file;
|
||||||
try {
|
try {
|
||||||
file = this.platform.openFile();
|
file = await this.platform.openFile();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const attachment = this._room.uploadAttachment(file.name, file.blob);
|
const attachment = this._room.uploadAttachment(file.blob, file.name);
|
||||||
const content = {
|
const content = {
|
||||||
body: file.name,
|
body: file.name,
|
||||||
msgtype: "m.file",
|
msgtype: "m.file",
|
||||||
|
Loading…
Reference in New Issue
Block a user