public static void sendAttachmentText ( final String text ) { dispatchConversationTask ( new ConversationDispatchTask ( ) { @ Override protected boolean execute ( Conversation conversation ) { CompoundMessage message = new CompoundMessage ( ) ; message . setBody ( text ) ; message . setRead ( true ) ; message . setHidden ( true ) ; message . setSenderId ( conversation . getPerson ( ) . getId ( ) ) ; message . setAssociatedFiles ( null ) ; conversation . getMessageManager ( ) . sendMessage ( message ) ; return true ; } } , "send attachment text" ) ; }
Sends a text message to the server . This message will be visible in the conversation view on the server but will not be shown in the client s Message Center .