comparison src/lib/Chat.luan @ 11:563a5358f2ee

add delete_chat
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 31 Oct 2024 19:17:53 -0600
parents 41d35b72c774
children 9f45d32670ae
comparison
equal deleted inserted replaced
10:f9e6a4cc4f7d 11:563a5358f2ee
40 end 40 end
41 41
42 function chat.delete() 42 function chat.delete()
43 run_in_transaction( function() 43 run_in_transaction( function()
44 local id = chat.id 44 local id = chat.id
45 -- Db.delete("chat_user_ids:"..id) 45 Db.delete("post_chat_id:"..id)
46 Db.delete("id:"..id) 46 Db.delete("id:"..id)
47 end ) 47 end )
48 end 48 end
49 49
50 function chat.other_users_email(user) 50 function chat.other_users_email(user)