mirror of
https://github.com/BlowaterNostr/blowater.git
synced 2024-10-18 15:43:20 +00:00
nonblocking send loop (#344)
This commit is contained in:
parent
253958579e
commit
7948a294c3
@ -183,7 +183,7 @@ export async function* UI_Interaction_Update(args: {
|
||||
// Editor
|
||||
//
|
||||
else if (event.type == "SendMessage") {
|
||||
const err = await handle_SendMessage(
|
||||
handle_SendMessage(
|
||||
event,
|
||||
app.ctx,
|
||||
app.lamport,
|
||||
@ -192,11 +192,11 @@ export async function* UI_Interaction_Update(args: {
|
||||
app.model.gmEditors,
|
||||
app.database,
|
||||
app.groupChatController,
|
||||
);
|
||||
if (err instanceof Error) {
|
||||
console.error("update:SendMessage", err);
|
||||
continue;
|
||||
}
|
||||
).then((res) => {
|
||||
if (res instanceof Error) {
|
||||
console.error("update:SendMessage", res);
|
||||
}
|
||||
});
|
||||
} else if (event.type == "UpdateMessageFiles") {
|
||||
const editors = event.isGroupChat ? model.gmEditors : model.dmEditors;
|
||||
const editor = editors.get(event.pubkey.hex);
|
||||
|
Loading…
Reference in New Issue
Block a user