libpurple/resources/conversationmanager/statements/query-properties.sql

Sun, 10 Aug 2025 23:44:08 +0800

author
Gong Zhile <gongzl@stu.hebust.edu.cn>
date
Sun, 10 Aug 2025 23:44:08 +0800
branch
purple_conversation_find_message_by_id
changeset 43309
099e1dfb856b
parent 43284
50c1bcc45576
permissions
-rw-r--r--

Add Purple.Conversation.find_message_by_id

The method was added so that a protocol or plugin could easily lookup
for the reference for a message. This will be especially useful when a
protocol received a quoted message but only with an id.

SELECT
  account_id, -- construct only
  age_restricted AS conv_age_restricted,
  alias AS conv_alias,
  conversation_id, -- construct only
  created_on AS conv_created_on,
  creator_id,
  description AS conv_description,
  drafting AS conv_drafting,
  favorite AS conv_favorite,
  federated, -- construct only
  logging AS conv_logging,
  needs_attention AS conv_needs_attention,
  title AS conv_title,
  topic AS conv_topic,
  topic_author_id,
  topic_updated AS conv_topic_updated,
  type, -- construct only
  url AS conv_url,
  user_nickname AS conv_nickname
FROM conversations

mercurial