add user check
This commit is contained in:
@@ -19,6 +19,9 @@ class MyObserver extends NavigatorObserver {
|
|||||||
EventType.notificationMessageNew,
|
EventType.notificationMessageNew,
|
||||||
)
|
)
|
||||||
.listen((event) {
|
.listen((event) {
|
||||||
|
if (event.message?.user?.id == client.state.currentUser?.id) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
final channelId = event.channelId;
|
final channelId = event.channelId;
|
||||||
if (currentRoute?.settings.name == Routes.CHANNEL_PAGE) {
|
if (currentRoute?.settings.name == Routes.CHANNEL_PAGE) {
|
||||||
final args = currentRoute?.settings.arguments as ChannelPageArgs;
|
final args = currentRoute?.settings.arguments as ChannelPageArgs;
|
||||||
|
|||||||
Reference in New Issue
Block a user