@@ -91,6 +91,19 @@ export function insertMessageIntoTable (channelObject, messageTable, message, fr
9191 * index.ttl#this and the chats messages are stored in YYYY/MM/DD/chat.ttl
9292 *
9393 * Use to import store as param 2, now ignores it and uses the UI main store
94+ *
95+ * Options include:
96+
97+ - shiftEnterSendsMessage: Use shift/enter to send message, Enter to add newline, instead of the reverse.
98+ - authorDateOnLeft: Display the author's anme and date of the message in the left column instead of first above the content
99+ - selectedMessage: Display one message highlighted with the chat around it
100+ - solo: By itelf on a webpage, so user scroll anywhere in the web page scan scroll the chat.
101+ - newestFirst: Arrange the chat messages chronologically newest at the top insted of at the bottom
102+ - infinite: Use infinite scroll
103+ - showDeletedMessages: Show messages which have been delted as "deleted message". Otherwise hide them.
104+ - expandImagesInline: If a URI by itself in a message looks like an image URI, replace it with the image
105+ - inlineImageHeightEms: The height (in ems) of images expaned from their URIs in the chat.
106+
94107 */
95108export async function infiniteMessageArea ( dom , wasStore , chatChannel , options ) {
96109 // ///////////////////////////////////////////////////////////////////////
@@ -329,7 +342,7 @@ export async function infiniteMessageArea (dom, wasStore, chatChannel, options)
329342 /// ///////////////////////
330343 /*
331344 options = options || {}
332- options.authorAboveContent = true
345+ options.authorDateOnLeft = true
333346 const newestFirst = options.newestFirst === '1' || options.newestFirst === true // hack for now
334347 const channelObject = new ChatChannel(chatChannel, options)
335348 const dateFolder = channelObject.dateFolder
@@ -615,7 +628,7 @@ export async function infiniteMessageArea (dom, wasStore, chatChannel, options)
615628 // Body of main function
616629
617630 options = options || { }
618- options . authorAboveContent = true
631+ options . authorDateOnLeft = false // @@ make a user optiosn
619632 const newestFirst = options . newestFirst === '1' || options . newestFirst === true // hack for now
620633
621634 const channelObject = new ChatChannel ( chatChannel , options )
0 commit comments