mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Set isFollowUp to allow checking whether a completely new message is wanted
This commit is contained in:
parent
42ef646685
commit
9f8f7b31e0
@ -418,8 +418,9 @@ Insert the given messages into the chat stream.
|
|||||||
if lastMessage.type is message.type and lastMessage.sender is message.sender and lastMessage.receiver is message.receiver
|
if lastMessage.type is message.type and lastMessage.sender is message.sender and lastMessage.receiver is message.receiver
|
||||||
createNewMessage = no
|
createNewMessage = no
|
||||||
|
|
||||||
output = v.messageTemplate.fetch message
|
|
||||||
if createNewMessage
|
if createNewMessage
|
||||||
|
message.isFollowUp = no
|
||||||
|
output = v.messageTemplate.fetch message
|
||||||
li = $ '<li></li>'
|
li = $ '<li></li>'
|
||||||
li.addClass 'timsChatMessage'
|
li.addClass 'timsChatMessage'
|
||||||
li.addClass "timsChatMessage#{message.type}"
|
li.addClass "timsChatMessage#{message.type}"
|
||||||
@ -429,6 +430,8 @@ Insert the given messages into the chat stream.
|
|||||||
|
|
||||||
li.appendTo $ '#timsChatMessageContainer > ul'
|
li.appendTo $ '#timsChatMessageContainer > ul'
|
||||||
else
|
else
|
||||||
|
message.isFollowUp = yes
|
||||||
|
output = v.messageTemplate.fetch message
|
||||||
$('.timsChatMessage:last-child .text').append $(output).find('.text li:last-child')
|
$('.timsChatMessage:last-child .text').append $(output).find('.text li:last-child')
|
||||||
|
|
||||||
lastMessage = message
|
lastMessage = message
|
||||||
|
Loading…
Reference in New Issue
Block a user