When a synchronous event is fired, Converse will wait for all promises returned by the event's handlers to finish before continuing.
Attach a file by drag & drop or click to upload