Skip to content

Commit

Permalink
fix(CompletionProvider): remove prefix from searching (#1169)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr authored Oct 19, 2024
1 parent 9fc94de commit 487b8fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Dialogs/Composer/Completion/HandleProvider.vala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Tuba.HandleProvider: Tuba.CompletionProvider {
}

public override async ListModel suggest (string word, Cancellable? cancellable) throws Error {
var req = API.Account.search (word);
var req = API.Account.search (word.substring (1));
yield req.await ();

var results = new GLib.ListStore (typeof (Object));
Expand Down
2 changes: 1 addition & 1 deletion src/Dialogs/Composer/Completion/HashtagProvider.vala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Tuba.HashtagProvider: Tuba.CompletionProvider {
}

public override async ListModel suggest (string word, Cancellable? cancellable) throws Error {
var req = API.Tag.search (word);
var req = API.Tag.search (word.substring (1));
yield req.await ();

var suggestions = new GLib.ListStore (typeof (Object));
Expand Down

0 comments on commit 487b8fa

Please sign in to comment.