mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-16 11:58:50 +00:00
fix: hide mute button for self
This commit is contained in:
@ -46,6 +46,7 @@ class _StreamPage extends State<StreamPage> {
|
||||
setState(() {
|
||||
_chewieController = ChewieController(
|
||||
videoPlayerController: _controller!,
|
||||
aspectRatio: 16 / 9,
|
||||
autoPlay: true,
|
||||
placeholder:
|
||||
(widget.stream.info.image?.isNotEmpty ?? false)
|
||||
|
@ -12,7 +12,9 @@ class MuteButton extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final signer = ndk.accounts.getLoggedAccount()?.signer;
|
||||
if (signer == null) return SizedBox.shrink();
|
||||
if (signer == null || signer.getPublicKey() == pubkey) {
|
||||
return SizedBox.shrink();
|
||||
}
|
||||
|
||||
return FutureBuilder(
|
||||
future: ndk.lists.getSingleNip51List(Nip51List.kMute, signer),
|
||||
|
Reference in New Issue
Block a user