Implement XMPP relaying

This commit is contained in:
2025-02-21 21:34:47 +00:00
parent 018d2f87c7
commit 8d2f28f571
17 changed files with 941 additions and 77 deletions

View File

@@ -3,7 +3,7 @@ from django.contrib.auth.forms import UserCreationForm
from django.forms import ModelForm
from mixins.restrictions import RestrictedFormMixin
from .models import NotificationSettings, User, AI, PersonIdentifier, Person, Group, Persona, Manipulation, ChatSession, Message
from .models import NotificationSettings, User, AI, PersonIdentifier, Person, Group, Persona, Manipulation, ChatSession, Message, QueuedMessage
# Create your forms here.
@@ -162,3 +162,13 @@ class MessageForm(RestrictedFormMixin, forms.ModelForm):
"text": "Content of the message.",
"custom_author": "For detecting USER and BOT messages.",
}
class QueueForm(RestrictedFormMixin, forms.ModelForm):
class Meta:
model = QueuedMessage
fields = ("session", "manipulation", "text")
help_texts = {
"session": "Chat session this message will be sent in.",
"manipulation": "Manipulation that generated the message.",
"text": "Content of the proposed message.",
}