mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +01:00
Fix messaging.md
Thanks to Clinton Yeboah for reporting this
This commit is contained in:
parent
30861fb7ce
commit
ae6664479e
1 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,8 @@ before sending it, use the `Chat.createMessage()` and
|
||||||
```
|
```
|
||||||
Message newMessage = new Message();
|
Message newMessage = new Message();
|
||||||
newMessage.setBody("Howdy!");
|
newMessage.setBody("Howdy!");
|
||||||
message.setProperty("favoriteColor", "red");
|
// Additional modifications to the message Stanza.
|
||||||
|
JivePropertiesManager.addProperty(newMessage, "favoriteColor", "red");
|
||||||
newChat.sendMessage(newMessage);
|
newChat.sendMessage(newMessage);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue