Trying to make the SSB client webapp tolerable. Middling success. Let me set some 'about' information. Tweak what information is shown where as I experiment. Mess with the feed logic.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3714 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2021-12-28 20:21:23 +00:00
parent 12ab2f4b85
commit 0f7472fa22
5 changed files with 63 additions and 30 deletions

View File

@@ -5,7 +5,6 @@ var g_data = {
messages: [],
users: {},
broadcasts: [],
showUsers: false,
show_connect_dialog: false,
show_user_dialog: null,
connect: null,
@@ -21,6 +20,7 @@ window.addEventListener('message', function(event) {
if (key == 'message') {
g_data.messages.push(event.data[key]);
g_data.messages.sort((x, y) => y.timestamp - x.timestamp);
g_data.messages.splice(100);
} else if (key + 's' in g_data && Array.isArray(g_data[key + 's'])) {
g_data[key + 's'].push(event.data[key]);
} else if (key == 'user') {