Tallefer / bombus-qd

Automatically exported from code.google.com/p/bombus-qd
GNU General Public License v2.0
0 stars 0 forks source link

XEP-0107 #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Публикация текущего настроения в 
конференции путем отправки сообщения(user 
mood status in message stanza)

2.3 Including a Mood in a IM Message

A user MAY provide a mood extension in a specific IM message in order to 
lend a defined emotional tone to text of that particular message. (This 
does not override the user's more general mood and is not intended to 
replace PEP as a more general transport method for user moods.)

Example 5. User Provides Mood in Message
<message from='romeo@montague.lit/pda'
         from='juliet@capulet.lit'
         type='chat'>
  <body>A thousand times good night!</body>
  <mood xmlns='http://jabber.org/protocol/mood'>
    <sad/>
  </mood>
</message>

Original issue reported on code.google.com by kotov.alexej@gmail.com on 15 Aug 2009 at 8:53

GoogleCodeExporter commented 9 years ago
Если внимательно почитать текст, то можно 
понять, что таким образом можно указывать 
настроение с которым вы пишете отдельное 
сообщение. И оно не должно менять общее 
настроение. 

Предложу лишь реализовать отправку 
настроений внутри презенса в том случае, 
если сервер 
не поддерживает PEP. (Такое поведение не 
рекомендовано, но разрешено. И в отсутствии 
поддержки сервером PEP является 
единственной удобной реализацией). Правда 
не яснО, 
какие клиенты такое поведение поймут.

Original comment by tishka17 on 14 Oct 2009 at 7:27