Sun, 10 Aug 2025 23:44:08 +0800
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.
|
43289
b39dbed64dc0
Delete conversations from the database when the user leaves them
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | DELETE FROM conversations |
|
b39dbed64dc0
Delete conversations from the database when the user leaves them
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | WHERE |
|
b39dbed64dc0
Delete conversations from the database when the user leaves them
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | conversation_id = :conversation_id |
|
b39dbed64dc0
Delete conversations from the database when the user leaves them
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | AND |
|
b39dbed64dc0
Delete conversations from the database when the user leaves them
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | account_id = :account_id |