mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-07 09:13:04 +02:00
Patch smome doc issues and do minor bug mop up (outgoing bot message flaggin, unprotected bot endpoint, contact filtering on scope selection, don't drop disabled but configured community endpoints
This commit is contained in:
@@ -477,8 +477,8 @@ function ScopeSelector({
|
||||
onChange({ ...scope, messages: buildMessages(selectedChannels, current) });
|
||||
};
|
||||
|
||||
// Non-repeater contacts only (type 0)
|
||||
const filteredContacts = contacts.filter((c) => c.type === 0);
|
||||
// Exclude repeaters (2), rooms (3), and sensors (4)
|
||||
const filteredContacts = contacts.filter((c) => c.type === 0 || c.type === 1);
|
||||
|
||||
const modeDescriptions: Record<ScopeMode, string> = {
|
||||
all: 'All messages',
|
||||
@@ -1045,6 +1045,13 @@ export function SettingsFanoutSection({
|
||||
Integrations are an experimental feature in open beta.
|
||||
</div>
|
||||
|
||||
{health?.bots_disabled && (
|
||||
<div className="rounded-md border border-destructive/50 bg-destructive/10 px-4 py-3 text-sm text-destructive">
|
||||
Bot system is disabled by server configuration (MESHCORE_DISABLE_BOTS). Bot integrations
|
||||
cannot be created or modified.
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
<span className="text-sm text-muted-foreground">Add:</span>
|
||||
{TYPE_OPTIONS.filter((opt) => opt.value !== 'bot' || !health?.bots_disabled).map((opt) => (
|
||||
|
||||
Reference in New Issue
Block a user