Skip to main content

Module chats

Module chats 

Source
Expand description

Chat database operations — CRUD for the chats table.

Structs§

SlimChatDB
Slim version of Chat for database storage.

Functions§

delete_chat
Delete a chat and all its messages from the database. chat_identifier is the string id (npub for DMs, channel id for Communities) — NOT the integer PK.
get_all_chats
Get all chats from the database.
save_slim_chat
Upsert a chat to the database.