messageGroup Chat Page

⚙️ Chat Configuration

  • The group chat system can be enabled or disabled per job via configuration.

👥 Job-Based Group Chats

  • Supports job-based group communication.

  • Members can chat only within their assigned job group (e.g. Police, Sheriff, Ambulance).

📦 Group Chat Cards (Main Page)

  • Each group card displays:

    • Job logo

    • Job name (label)

    • Total number of active job group members

    • Number of unread messages

    • Last message preview:

      • Sender full name

      • Message content

🔄 Real-Time Messaging

  • Messages are received live without refreshing the page.

📨 Message Layout

  • Each message includes:

    • Sender status (On Duty / Off Duty / Offline)

    • Sender full name

    • Sender call sign

    • Message timestamp (time ago)

    • Action buttons:

      • Copy message

      • Delete message (visible only to the message sender)

🏷️ Cross-Job Messages

  • If a message is sent from a member outside the current job group:

    • The sender’s original job name is shown at the top of the message

    • The message is styled using the job’s color

🧭 Chat Header

  • The chat header includes:

    • Button to maximize / minimize the chat UI

    • Job group label

    • Total number of online job group members

    • Job logo

    • Button to return to the main group chat list

  • The chat icon in the navigation bar displays the number of unread messages

Last updated