# \#chat

**URL:** https://forum.heroiclabs.com/tag/chat/32.md

[Latest](https://forum.heroiclabs.com/latest.md) · [Categories](https://forum.heroiclabs.com/categories.md) · [Tags](https://forum.heroiclabs.com/tags.md)

---

## [Best practice for automatically deleting persistent chat data](https://forum.heroiclabs.com/t/best-practice-for-automatically-deleting-persistent-chat-data/6478)

<div class="topic-metadata">

**Author:** [@Mathijs-Bakker](https://forum.heroiclabs.com/u/Mathijs-Bakker)\
**Replies:** 6\
**Last updated:** [January 13, 2026, 4:23pm UTC](https://forum.heroiclabs.com/t/best-practice-for-automatically-deleting-persistent-chat-data/6478 "2026-01-13T16:23:53Z")

</div>

Hi all, We’re using Nakama’s persistent chat messages, which are stored in the database. To keep the database clean and prevent unlimited growth, we’re looking for best practices to automatically delete old chat data. I…

---

## [Issue with channel leave hook not triggering on app force close or disconnect](https://forum.heroiclabs.com/t/issue-with-channel-leave-hook-not-triggering-on-app-force-close-or-disconnect/6340)

<div class="topic-metadata">

**Author:** [@Ahmadrezadl](https://forum.heroiclabs.com/u/Ahmadrezadl)\
**Replies:** 8\
**Last updated:** [August 2, 2025, 10:27am UTC](https://forum.heroiclabs.com/t/issue-with-channel-leave-hook-not-triggering-on-app-force-close-or-disconnect/6340 "2025-08-02T10:27:46Z")

</div>

Hi everyone, I’m building a game using Nakama for the backend, and I’ve implemented a voice room feature similar to Clubhouse, where users can join a room and talk. To track who is currently talking or holding the micr…

---

## [What is best way to limit the frequency of chat messages sent by players?](https://forum.heroiclabs.com/t/what-is-best-way-to-limit-the-frequency-of-chat-messages-sent-by-players/2809)

<div class="topic-metadata">

**Author:** [@ownway88](https://forum.heroiclabs.com/u/ownway88)\
**Replies:** 3\
**Last updated:** [July 28, 2025, 12:15am UTC](https://forum.heroiclabs.com/t/what-is-best-way-to-limit-the-frequency-of-chat-messages-sent-by-players/2809 "2025-07-28T00:15:25Z")

</div>

Hi, If a user sends the messages too frequently, it overloads the server and spams the channel. What is the most efficient way to control that from server side? For example, only allows user to send maximum one message …

---

## [Incorrect message retrieval when using cursor pagination in Nakama chat](https://forum.heroiclabs.com/t/incorrect-message-retrieval-when-using-cursor-pagination-in-nakama-chat/6032)

<div class="topic-metadata">

**Author:** [@rokky](https://forum.heroiclabs.com/u/rokky)\
**Replies:** 4\
**Last updated:** [February 25, 2025, 4:46pm UTC](https://forum.heroiclabs.com/t/incorrect-message-retrieval-when-using-cursor-pagination-in-nakama-chat/6032 "2025-02-25T16:46:57Z")

</div>

Hello. An issue has occurred while developing chat functionality using Nakama. We are currently implementing a feature that allows users to move to the channel list and join a new channel without leaving the existing cha…

---

## [Different SenderId on ListNotificationsAsync & socket.ReceivedNotification](https://forum.heroiclabs.com/t/different-senderid-on-listnotificationsasync-socket-receivednotification/4840)

<div class="topic-metadata">

**Author:** [@mrez9](https://forum.heroiclabs.com/u/mrez9)\
**Replies:** 1\
**Last updated:** [April 20, 2024, 2:09pm UTC](https://forum.heroiclabs.com/t/different-senderid-on-listnotificationsasync-socket-receivednotification/4840 "2024-04-20T14:09:20Z")

</div>

whenever an online player receive chat message from a channel that is not joined yet, receive this notification from socket.ReceivedNotification: Notification Received, code:-1, SenderId:\[otherPlayerUserId\], subject:\[ot…

---

## [Add caller id or username to group event messages](https://forum.heroiclabs.com/t/add-caller-id-or-username-to-group-event-messages/4983)

<div class="topic-metadata">

**Author:** [@mrez9](https://forum.heroiclabs.com/u/mrez9)\
**Replies:** 1\
**Last updated:** [February 21, 2024, 12:59pm UTC](https://forum.heroiclabs.com/t/add-caller-id-or-username-to-group-event-messages/4983 "2024-02-21T12:59:32Z")

</div>

on group events like added, kicked, promoted, demoted & banned, server send a message to group channel, but there is not any info about caller (who did this action like kicking). i checked file core\_group.go and find ou…

---

## [Issue on receiving notification for not joined channel messages](https://forum.heroiclabs.com/t/issue-on-receiving-notification-for-not-joined-channel-messages/4843)

<div class="topic-metadata">

**Author:** [@mrez9](https://forum.heroiclabs.com/u/mrez9)\
**Replies:** 3\
**Last updated:** [January 31, 2024, 1:36pm UTC](https://forum.heroiclabs.com/t/issue-on-receiving-notification-for-not-joined-channel-messages/4843 "2024-01-31T13:36:21Z")

</div>

When two players connect to Nakama for the first time and want to start Direct Chat using JoinChatAsync , the other player receives a notification with code -1, and everything works as expected. However, if both players…

---

## [Dedicated server + client chat solution](https://forum.heroiclabs.com/t/dedicated-server-client-chat-solution/4582)

<div class="topic-metadata">

**Author:** [@Riki](https://forum.heroiclabs.com/u/Riki)\
**Replies:** 1\
**Last updated:** [November 11, 2023, 11:00am UTC](https://forum.heroiclabs.com/t/dedicated-server-client-chat-solution/4582 "2023-11-11T11:00:43Z")

</div>

Hello :slight\_smile: This is a slight continuation of my previous question: but since it was answered a few months ago, I didn’t want to bring it back to life. We plan to use our dedicated server to send messages to …

---

## [Dedicated server sending private messages to players](https://forum.heroiclabs.com/t/dedicated-server-sending-private-messages-to-players/4286)

<div class="topic-metadata">

**Author:** [@Riki](https://forum.heroiclabs.com/u/Riki)\
**Replies:** 2\
**Last updated:** [August 31, 2023, 1:01pm UTC](https://forum.heroiclabs.com/t/dedicated-server-sending-private-messages-to-players/4286 "2023-08-31T13:01:39Z")

</div>

Hi, what would be the preferred way for dedicated server to send private persistent messages? We want the server to be able to send private messages to connected players, triggered by some progress being made in the ga…

---

## [How to display time passed since receving a chat message?](https://forum.heroiclabs.com/t/how-to-display-time-passed-since-receving-a-chat-message/1891)

<div class="topic-metadata">

**Author:** [@Muhammad079](https://forum.heroiclabs.com/u/Muhammad079)\
**Replies:** 2\
**Last updated:** [August 18, 2021, 1:45pm UTC](https://forum.heroiclabs.com/t/how-to-display-time-passed-since-receving-a-chat-message/1891 "2021-08-18T13:45:54Z")

</div>

I had Implemented Chat and need to show when did the last message receive. like on each message it should be written – mins ago. Now I dont understand how to implement. :tv: Media:

---

## [How could we implement a gifting system over chat?](https://forum.heroiclabs.com/t/how-could-we-implement-a-gifting-system-over-chat/1728)

<div class="topic-metadata">

**Author:** [@cloudAle](https://forum.heroiclabs.com/u/cloudAle)\
**Replies:** 9\
**Last updated:** [July 18, 2021, 11:41am UTC](https://forum.heroiclabs.com/t/how-could-we-implement-a-gifting-system-over-chat/1728 "2021-07-18T11:41:59Z")

</div>

Hi, we’re currently trying to make gifting on group mechanics via group chats like this We’re unsure on how to handle multiple people updating the same chat content with UpdateChatAsync. Problem is from design wise, …

---

## [Having a list of online users at any given time](https://forum.heroiclabs.com/t/having-a-list-of-online-users-at-any-given-time/26)

<div class="topic-metadata">

**Author:** [@carlasofia](https://forum.heroiclabs.com/u/carlasofia)\
**Replies:** 1\
**Last updated:** [June 24, 2019, 7:52pm UTC](https://forum.heroiclabs.com/t/having-a-list-of-online-users-at-any-given-time/26 "2019-06-24T19:52:39Z")

</div>

How can I create a list of the users that are online in the game?
