Skip to content

Commit

Permalink
debug authormember
Browse files Browse the repository at this point in the history
  • Loading branch information
tnfAngel committed Jun 28, 2024
1 parent 30f57da commit 3ebf8ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xmpp/XMPP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ class XMPP extends Base {
try {
await this.client.partyLock.wait();

console.log('Group chat from', m.from, 'message:', m)

Check failure on line 184 in src/xmpp/XMPP.ts

View workflow job for this annotation

GitHub Actions / Test Code (Node 16)

More than 1 blank line not allowed.
const partyId = m.from.split('@')[0].replace('Party-', '');
if (!this.client.party || this.client.party.id !== partyId) return;
Expand All @@ -193,6 +192,8 @@ class XMPP extends Base {
const authorMember = this.client.party.members.get(authorId);
if (!authorMember) return;

console.log('Group chat from', authorMember)

Check warning on line 195 in src/xmpp/XMPP.ts

View workflow job for this annotation

GitHub Actions / Test Code (Node 16)

Unexpected console statement.

Check failure on line 195 in src/xmpp/XMPP.ts

View workflow job for this annotation

GitHub Actions / Test Code (Node 16)

Missing semicolon.

const partyMessage = new PartyMessage(this.client, {
content: m.body ?? '', author: authorMember, sentAt: new Date(), id: m.id as string, party: this.client.party,
});
Expand Down

0 comments on commit 3ebf8ea

Please sign in to comment.