deltachat / deltachat-desktop

Email-based instant messaging for Desktop.
GNU General Public License v3.0
914 stars 167 forks source link

sendToChat() dialog can have multiple instances #3281

Closed Simon-Laux closed 1 year ago

Simon-Laux commented 1 year ago

It should not be able to be opened multiple times on top of each other.

should we just ignore requests to open it when it is already open? or do sth different?

it gets more visible with #3280, but was already a problem before that. (though you needed to have multiple webxdc apps open to trigger it.

r10s commented 1 year ago

i think it is better to abort previous sendToChat() requests (no need to inform the webxdc, which is fire-and-forget anyway) - otherwise, the user may not even remember that they hit sendToChat() somehow before and things get stuck