Skip to content

Commit 5f700de

Browse files
JulienKodernystrom
authored andcommitted
[MessageAutocompleteController] Register prefix when we pass attributes (#79)
Adding prefix to registeredPrefixes each time we register one with attributes
1 parent 97e1988 commit 5f700de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MessageViewController/MessageAutocompleteController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ public final class MessageAutocompleteController: MessageTextViewListener {
176176
}
177177

178178
public func registerAutocomplete(prefix: String, attributes: [NSAttributedStringKey: Any]) {
179+
registeredPrefixes.insert(prefix)
179180
autocompleteTextAttributes[prefix] = attributes
180181
autocompleteTextAttributes[prefix]?[.paragraphStyle] = paragraphStyle
181182
}

0 commit comments

Comments
 (0)