From adb0e3528b40be863bca76b22f4640af4e0dba78 Mon Sep 17 00:00:00 2001 From: citrons Date: Fri, 30 May 2025 16:42:48 -0500 Subject: use "gone" for both deleted channels and users --- server/channel/channel.go | 2 +- server/user/user.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/channel/channel.go b/server/channel/channel.go index 69f2400..078e377 100644 --- a/server/channel/channel.go +++ b/server/channel/channel.go @@ -175,6 +175,6 @@ func (c *Channel) GetInfo() proto.Object { func (t Tombstone) GetInfo() proto.Object { return proto.Object { - "deleted", "", map[string]string {"": t.name}, + "gone", "", map[string]string {"": t.name, "kind": "channel"}, } } diff --git a/server/user/user.go b/server/user/user.go index 0f20bf1..0a9ae4e 100644 --- a/server/user/user.go +++ b/server/user/user.go @@ -105,6 +105,6 @@ func (u *User) GetInfo() proto.Object { func (t Tombstone) GetInfo() proto.Object { return proto.Object { - "gone", "", map[string]string {"": t.name}, + "gone", "", map[string]string {"": t.name, "kind": "u"}, } } -- cgit v1.2.3