#set($messageGroupCount=0) #foreach($message in $chatMessages) ## The first message opens a new o_instantmessaging_message_group tag and adds the users ## Name, his avatar icon and a list to his visiting card #if($message.first) #if ($messageGroupCount != 0) ## close last o_instantmessaging_message_group tag
#end
## link to visiting card #if(!$message.anonym) #end #if($message.anonym)
#elseif ($message.avatarKey != ":NA:")
#else
#end
${message.from}
## end link to visiting card #if(!$message.anonym)
#end #set($messageGroupCount=$messageGroupCount+1) #end ## The real messages start here
${message.creationDate} ${message.body}
#end #if ($messageGroupCount > 0) ## close last o_instantmessaging_message_group tag
#end #if($focus) #else #end