@@ -40,7 +40,7 @@ open class TwoStepMentionCommand: CommandHandler {
40
40
self . displayInfo = displayInfo
41
41
}
42
42
43
- public func canHandleCommand( in text: String , caretLocation: Int ) -> ComposerCommand ? {
43
+ open func canHandleCommand( in text: String , caretLocation: Int ) -> ComposerCommand ? {
44
44
if text == id {
45
45
return ComposerCommand (
46
46
id: id,
@@ -59,7 +59,7 @@ open class TwoStepMentionCommand: CommandHandler {
59
59
}
60
60
}
61
61
62
- public func handleCommand(
62
+ open func handleCommand(
63
63
for text: Binding < String > ,
64
64
selectedRangeLocation: Binding < Int > ,
65
65
command: Binding < ComposerCommand ? > ,
@@ -84,19 +84,19 @@ open class TwoStepMentionCommand: CommandHandler {
84
84
selectedRangeLocation. wrappedValue = newCaretLocation
85
85
}
86
86
87
- public func canBeExecuted( composerCommand: ComposerCommand ) -> Bool {
87
+ open func canBeExecuted( composerCommand: ComposerCommand ) -> Bool {
88
88
selectedUser != nil
89
89
}
90
90
91
- public func commandHandler( for command: ComposerCommand ) -> CommandHandler ? {
91
+ open func commandHandler( for command: ComposerCommand ) -> CommandHandler ? {
92
92
if let selectedUser = selectedUser,
93
93
command. typingSuggestion. text != " \( mentionSymbol) \( selectedUser. mentionText) " {
94
94
self . selectedUser = nil
95
95
}
96
96
return command. id == id ? self : nil
97
97
}
98
98
99
- public func showSuggestions(
99
+ open func showSuggestions(
100
100
for command: ComposerCommand
101
101
) -> Future < SuggestionInfo , Error > {
102
102
if selectedUser != nil {
@@ -126,7 +126,7 @@ open class TwoStepMentionCommand: CommandHandler {
126
126
return mentionsCommandHandler. showSuggestions ( for: updated)
127
127
}
128
128
129
- public var replacesMessageSent : Bool {
129
+ open var replacesMessageSent : Bool {
130
130
true
131
131
}
132
132
0 commit comments