Add support for soju.im/filehost

For now, only handle paste events containing files.

Co-authored-by: Alex McGrath <amk@amk.ie>
This commit is contained in:
Simon Ser 2024-04-16 13:22:24 +02:00
parent 97b9efcc9f
commit 87e88cccca
3 changed files with 93 additions and 0 deletions

View file

@ -1967,6 +1967,11 @@ export default class App extends Component {
}
}
let activeClient = null;
if (activeBuffer) {
activeClient = this.clients.get(activeBuffer.server);
}
if (this.state.connectForm) {
let status = activeServer ? activeServer.status : ServerStatus.DISCONNECTED;
let connecting = status === ServerStatus.CONNECTING || status === ServerStatus.REGISTERING;
@ -2208,6 +2213,7 @@ export default class App extends Component {
${memberList}
<${Composer}
ref=${this.composer}
client=${activeClient}
readOnly=${composerReadOnly}
onSubmit=${this.handleComposerSubmit}
autocomplete=${this.autocomplete}