mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-10 10:57:04 +00:00
Handle join errors prefixed with duplicate:
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
if (nip29.isSupported($relay)) {
|
||||
const createMessage = await getThunkError(nip29.createRoom(url, room))
|
||||
|
||||
if (createMessage && !createMessage.includes("already")) {
|
||||
if (createMessage && !createMessage.match(/^duplicate:|already a member/)) {
|
||||
return pushToast({theme: "error", message: createMessage})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user