Mercurial Hosting > chat
comparison src/lib/Chat.luan @ 63:afd5ab5b02a2
file upload
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 05 Mar 2025 18:43:06 -0700 |
parents | 7b6691bd65c3 |
children | bc9f452ee168 |
comparison
equal
deleted
inserted
replaced
62:ad9772fc588a | 63:afd5ab5b02a2 |
---|---|
34 chat_key = chat.key or error() | 34 chat_key = chat.key or error() |
35 } | 35 } |
36 end | 36 end |
37 | 37 |
38 local function get_chat_key(user_ids) | 38 local function get_chat_key(user_ids) |
39 #user_ids > 1 or error() | |
39 sort(user_ids) | 40 sort(user_ids) |
40 return concat(user_ids,"~") | 41 return concat(user_ids,"~") |
41 end | 42 end |
42 | 43 |
43 function Chat.new(chat) | 44 function Chat.new(chat) |