Work on fixing bugs and reformat
This commit is contained in:
@@ -8,10 +8,7 @@ from django.core import signing
|
||||
|
||||
from core.models import ChatSession, Message, PersonIdentifier, WorkspaceConversation
|
||||
from core.realtime.typing_state import get_person_typing_state
|
||||
from core.views.compose import (
|
||||
COMPOSE_WS_TOKEN_SALT,
|
||||
_serialize_messages_with_artifacts,
|
||||
)
|
||||
from core.views.compose import COMPOSE_WS_TOKEN_SALT, _serialize_messages_with_artifacts
|
||||
|
||||
|
||||
def _safe_int(value, default=0):
|
||||
|
||||
@@ -25,9 +25,7 @@ def set_person_typing_state(
|
||||
"source_service": str(source_service or ""),
|
||||
"display_name": str(display_name or ""),
|
||||
"updated_ts": now_ms,
|
||||
"expires_ts": (
|
||||
now_ms + (TYPING_TTL_SECONDS * 1000) if started else now_ms
|
||||
),
|
||||
"expires_ts": (now_ms + (TYPING_TTL_SECONDS * 1000) if started else now_ms),
|
||||
}
|
||||
cache.set(
|
||||
_person_key(user_id, person_id),
|
||||
|
||||
Reference in New Issue
Block a user