[PR #134] [MERGED] Kick: Feature Parity Improvements #1 : remove deleted messages and users #156

Closed
opened 2026-03-02 04:00:30 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/eerimoq/moblin/pull/134
Author: @Kn0ax
Created: 6/27/2025
Status: Merged
Merged: 6/27/2025
Merged by: @eerimoq

Base: mainHead: main


📝 Commits (2)

  • 4941f51 [feat] kick-chat: remove deleted messages and users
  • 9a4fcce fix lint error with a single extra line...

📊 Changes

2 files changed (+70 additions, -2 deletions)

View changed files

📝 Moblin/Platforms/Kick/KickPusher.swift (+52 -0)
📝 Moblin/Various/Model/ModelKick.swift (+18 -2)

📄 Description

This is the first of several PRs to enhance Moblin’s Kick support.
This one removes any deleted messages and users from the chat.

Incoming moderation events from pusher

  1. Single‐message deletion

    {
      "event": "App\\Events\\MessageDeletedEvent",
      "data": "{\"id\":\"7908b88b-4ba2-4c3d-ac1b-35a6cdc99983\",\"message\":{\"id\":\"73c109e3-d4c9-4963-a062-701c39d79a46\"},\"aiModerated\":false,\"violatedRules\":[]}",
      "channel": "chatrooms.1358210.v2"
    }
    
  2. Permanent ban

    {
      "event": "App\\Events\\UserBannedEvent",
      "data": "{\"id\":\"a39d0f34-865c-4785-9f5a-b2e73271d944\",\"user\":{\"id\":41379045,\"username\":\"testuser\",\"slug\":\"testuser\"},\"banned_by\":{\"id\":0,\"username\":\"kn0ax\",\"slug\":\"kn0ax\"},\"permanent\":true}",
      "channel": "chatrooms.1358210.v2"
    }
    
  3. Temporary timeout

    {
      "event": "App\\Events\\UserBannedEvent",
      "data": "{\"id\":\"0216a6ce-609a-44dd-8fce-a9cf56fe43df\",\"user\":{\"id\":41379045,\"username\":\"testuser\",\"slug\":\"testuser\"},\"banned_by\":{\"id\":0,\"username\":\"kn0ax\",\"slug\":\"kn0ax\"},\"permanent\":false,\"duration\":60,\"expires_at\":\"2025-06-26T21:12:46+00:00\"}",
      "channel": "chatrooms.1358210.v2"
    }
    

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/eerimoq/moblin/pull/134 **Author:** [@Kn0ax](https://github.com/Kn0ax) **Created:** 6/27/2025 **Status:** ✅ Merged **Merged:** 6/27/2025 **Merged by:** [@eerimoq](https://github.com/eerimoq) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`4941f51`](https://github.com/eerimoq/moblin/commit/4941f513bad1c29603d17a3da9c613ac1920fee7) [feat] kick-chat: remove deleted messages and users - [`9a4fcce`](https://github.com/eerimoq/moblin/commit/9a4fcce8fc1ac3b86983ed13f67c1c9155f6eb1d) fix lint error with a single extra line... ### 📊 Changes **2 files changed** (+70 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `Moblin/Platforms/Kick/KickPusher.swift` (+52 -0) 📝 `Moblin/Various/Model/ModelKick.swift` (+18 -2) </details> ### 📄 Description This is the first of several PRs to enhance Moblin’s Kick support. This one removes any deleted messages and users from the chat. #### Incoming moderation events from pusher 1. **Single‐message deletion** ```json { "event": "App\\Events\\MessageDeletedEvent", "data": "{\"id\":\"7908b88b-4ba2-4c3d-ac1b-35a6cdc99983\",\"message\":{\"id\":\"73c109e3-d4c9-4963-a062-701c39d79a46\"},\"aiModerated\":false,\"violatedRules\":[]}", "channel": "chatrooms.1358210.v2" } ``` 2. **Permanent ban** ```json { "event": "App\\Events\\UserBannedEvent", "data": "{\"id\":\"a39d0f34-865c-4785-9f5a-b2e73271d944\",\"user\":{\"id\":41379045,\"username\":\"testuser\",\"slug\":\"testuser\"},\"banned_by\":{\"id\":0,\"username\":\"kn0ax\",\"slug\":\"kn0ax\"},\"permanent\":true}", "channel": "chatrooms.1358210.v2" } ``` 3. **Temporary timeout** ```json { "event": "App\\Events\\UserBannedEvent", "data": "{\"id\":\"0216a6ce-609a-44dd-8fce-a9cf56fe43df\",\"user\":{\"id\":41379045,\"username\":\"testuser\",\"slug\":\"testuser\"},\"banned_by\":{\"id\":0,\"username\":\"kn0ax\",\"slug\":\"kn0ax\"},\"permanent\":false,\"duration\":60,\"expires_at\":\"2025-06-26T21:12:46+00:00\"}", "channel": "chatrooms.1358210.v2" } ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 04:00:30 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/moblin#156
No description provided.