Skip to content

Commit

Permalink
Merge pull request #1683 from 100mslive/FLUT-157
Browse files Browse the repository at this point in the history
FLUT-157: Added Capability to block peer from chat
  • Loading branch information
Decoder07 authored Dec 27, 2023
2 parents 2f3bc00 + b544e18 commit 05b764a
Show file tree
Hide file tree
Showing 20 changed files with 575 additions and 750 deletions.
10 changes: 5 additions & 5 deletions packages/hms_room_kit/example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ PODS:
- HMSBroadcastExtensionSDK (0.0.9)
- HMSHLSPlayerSDK (0.0.2):
- HMSAnalyticsSDK (= 0.0.2)
- HMSSDK (1.3.1):
- HMSSDK (1.4.1):
- HMSAnalyticsSDK (= 0.0.2)
- HMSWebRTC (= 1.0.5116)
- hmssdk_flutter (1.9.4):
- hmssdk_flutter (1.9.6):
- Flutter
- HMSBroadcastExtensionSDK (= 0.0.9)
- HMSHLSPlayerSDK (= 0.0.2)
- HMSSDK (= 1.3.1)
- HMSSDK (= 1.4.1)
- HMSWebRTC (1.0.5116)
- path_provider_foundation (0.0.1):
- Flutter
Expand Down Expand Up @@ -70,8 +70,8 @@ SPEC CHECKSUMS:
HMSAnalyticsSDK: 4d2a88a729b1eb42f3d25f217c28937ec318a5b7
HMSBroadcastExtensionSDK: d80fe325f6c928bd8e5176290b5a4b7ae15d6fbb
HMSHLSPlayerSDK: 6a54ad4d12f3dc2270d1ecd24019d71282a4f6a3
HMSSDK: 04aac0fefd95419cd1b4135156d4295cbcd51216
hmssdk_flutter: 3876d06f4ad68bf48a2ceb4c797551fedb860bd1
HMSSDK: 6a579cb806d4760cda149002150ff0beab03749b
hmssdk_flutter: 0b12e79b2f184fa3308fb65dade6e3b022d805c9
HMSWebRTC: ae54e9dd91b869051b283b43b14f57d43b7bf8e1
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6
Expand Down
26 changes: 13 additions & 13 deletions packages/hms_room_kit/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ packages:
dependency: transitive
description:
name: collection
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
source: hosted
version: "1.17.2"
version: "1.18.0"
convert:
dependency: transitive
description:
Expand Down Expand Up @@ -298,10 +298,10 @@ packages:
dependency: transitive
description:
name: meta
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "1.10.0"
mime:
dependency: transitive
description:
Expand Down Expand Up @@ -559,18 +559,18 @@ packages:
dependency: transitive
description:
name: stack_trace
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
url: "https://pub.dev"
source: hosted
version: "1.11.0"
version: "1.11.1"
stream_channel:
dependency: transitive
description:
name: stream_channel
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
url: "https://pub.dev"
source: hosted
version: "2.1.1"
version: "2.1.2"
string_scanner:
dependency: transitive
description:
Expand All @@ -591,10 +591,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
url: "https://pub.dev"
source: hosted
version: "0.6.0"
version: "0.6.1"
tuple:
dependency: transitive
description:
Expand Down Expand Up @@ -727,10 +727,10 @@ packages:
dependency: transitive
description:
name: web
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
url: "https://pub.dev"
source: hosted
version: "0.1.4-beta"
version: "0.3.0"
win32:
dependency: transitive
description:
Expand All @@ -756,5 +756,5 @@ packages:
source: hosted
version: "6.3.0"
sdks:
dart: ">=3.1.0 <4.0.0"
dart: ">=3.2.0-194.0.dev <4.0.0"
flutter: ">=3.13.0"
8 changes: 8 additions & 0 deletions packages/hms_room_kit/lib/src/assets/icons/block.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 2 additions & 7 deletions packages/hms_room_kit/lib/src/enums/session_store_keys.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ enum SessionStoreKey {
chatState,
chatPeerBlacklist,
chatMessageBlacklist,
pinnedMessages,
unknown
}

extension SessionStoreKeyValues on SessionStoreKey {
static String getNameFromMethod(SessionStoreKey method) {
switch (method) {
case SessionStoreKey.pinnedMessageSessionKey:
return "pinnedMessage";
return "pinnedMessages";
case SessionStoreKey.spotlight:
return "spotlight";
case SessionStoreKey.chatState:
Expand All @@ -24,16 +23,14 @@ extension SessionStoreKeyValues on SessionStoreKey {
return "chatPeerBlacklist";
case SessionStoreKey.chatMessageBlacklist:
return "chatMessageBlacklist";
case SessionStoreKey.pinnedMessages:
return "pinnedMessages";
default:
return "";
}
}

static SessionStoreKey getMethodFromName(String key) {
switch (key) {
case "pinnedMessage":
case "pinnedMessages":
return SessionStoreKey.pinnedMessageSessionKey;
case "spotlight":
return SessionStoreKey.spotlight;
Expand All @@ -43,8 +40,6 @@ extension SessionStoreKeyValues on SessionStoreKey {
return SessionStoreKey.chatPeerBlacklist;
case "chatMessageBlacklist":
return SessionStoreKey.chatMessageBlacklist;
case "pinnedMessages":
return SessionStoreKey.pinnedMessages;
default:
return SessionStoreKey.unknown;
}
Expand Down
Loading

0 comments on commit 05b764a

Please sign in to comment.