diff src/lib/Chat.luan @ 83:a47036fd0158

group chat
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 11 Mar 2025 13:56:59 -0600
parents bc9f452ee168
children
line wrap: on
line diff
--- a/src/lib/Chat.luan	Mon Mar 10 22:42:46 2025 -0600
+++ b/src/lib/Chat.luan	Tue Mar 11 13:56:59 2025 -0600
@@ -65,13 +65,14 @@
 		Http.push(url,message)
 	end
 
-	function chat.other_user_id(my_id)
+	function chat.other_user_ids(my_id)
+		local t = {nil}
 		for _, user_id in ipairs(chat.user_ids) do
 			if user_id ~= my_id then
-				return user_id
+				t[#t+1] = user_id
 			end
 		end
-		error()
+		return t
 	end
 
 	local function get_chatuser_key(user)