Skip to content

Commit 72cd2df

Browse files
committed
feat: Sent UNIX timestamp in ms for raisedHand
1 parent e933df5 commit 72cd2df

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/main/java/org/jitsi/jigasi/AudioModeration.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,10 @@ public boolean requestAudioMuteByJicofo(boolean bMuted)
354354
((ChatRoomJabberImpl) mucRoom).removePresencePacketExtensions(lowerHandExtension);
355355
}
356356

357+
long timeMillis = new Date().getTime();
358+
357359
// let's raise hand
358-
jitsiMeetTools.sendPresenceExtension(mucRoom, new RaiseHandExtension().setRaisedHandValue(true));
360+
jitsiMeetTools.sendPresenceExtension(mucRoom, new RaiseHandExtension().setRaisedHandValue(timeMillis));
359361

360362
return false;
361363
}
@@ -581,14 +583,13 @@ public RaiseHandExtension()
581583
}
582584

583585
/**
584-
* Sets user's audio muted status.
586+
* Sets user's raised hand status.
585587
*
586-
* @param value <tt>true</tt> or <tt>false</tt> which indicates audio
587-
* muted status of the user.
588+
* @param value the UNIX timestamp in miliseconds or null.
588589
*/
589-
public ExtensionElement setRaisedHandValue(Boolean value)
590+
public ExtensionElement setRaisedHandValue(Long value)
590591
{
591-
setText(value ? value.toString() : null);
592+
setText(value == null ? "0" : value.toString());
592593

593594
return this;
594595
}

0 commit comments

Comments
 (0)