Skip to content

Commit

Permalink
reverting my change, as commented
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloodiko committed Aug 24, 2023
1 parent 7a51126 commit ab5dae5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/xmpp/ChatRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,8 @@ export default class ChatRoom extends Listenable {
* @param elementName
* @param {string} [roomjid] the jid of the chat room where the message will be sent
*/
sendMessage(message, elementName, roomjid = this.roomjid) {
const msg = $msg({ to: roomjid,
sendMessage(message, elementName) {
const msg = $msg({ to: this.roomjid,
type: 'groupchat' });

// We are adding the message in a packet extension. If this element
Expand All @@ -919,8 +919,8 @@ export default class ChatRoom extends Listenable {
* @param elementName
* @param {string} [roomjid] the jid of the chat room where the recieving participant is
*/
sendPrivateMessage(id, message, elementName, roomjid = this.roomjid) {
const msg = $msg({ to: `${roomjid}/${id}`,
sendPrivateMessage(id, message, elementName) {
const msg = $msg({ to: `${this.roomjid}/${id}`,
type: 'chat' });

// We are adding the message in packet. If this element is different
Expand Down

0 comments on commit ab5dae5

Please sign in to comment.