mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-29 19:03:03 +00:00
fixed case insensitive contacts filtering in boxes, setting as default tg scheme handler
This commit is contained in:
parent
7170a0e5c0
commit
77b35891d4
@ -305,6 +305,8 @@ void AddParticipantInner::updateSel() {
|
||||
}
|
||||
|
||||
void AddParticipantInner::updateFilter(QString filter) {
|
||||
filter = textSearchKey(filter);
|
||||
|
||||
_time = unixtime();
|
||||
QStringList f;
|
||||
if (!filter.isEmpty()) {
|
||||
|
@ -250,6 +250,8 @@ void ContactsInner::updateSel() {
|
||||
}
|
||||
|
||||
void ContactsInner::updateFilter(QString filter) {
|
||||
filter = textSearchKey(filter);
|
||||
|
||||
QStringList f;
|
||||
if (!filter.isEmpty()) {
|
||||
QStringList filterList = filter.split(cWordSplit(), QString::SkipEmptyParts);
|
||||
|
@ -276,6 +276,8 @@ void NewGroupInner::updateSel() {
|
||||
}
|
||||
|
||||
void NewGroupInner::updateFilter(QString filter) {
|
||||
filter = textSearchKey(filter);
|
||||
|
||||
QStringList f;
|
||||
if (!filter.isEmpty()) {
|
||||
QStringList filterList = filter.split(cWordSplit(), QString::SkipEmptyParts);
|
||||
|
@ -638,6 +638,7 @@ void objc_finish() {
|
||||
}
|
||||
|
||||
void objc_registerCustomScheme() {
|
||||
LSSetDefaultHandlerForURLScheme(CFSTR("tg"), (CFStringRef)[[NSBundle mainBundle] bundleIdentifier]);
|
||||
}
|
||||
|
||||
BOOL _execUpdater(BOOL update = YES) {
|
||||
|
@ -18,11 +18,11 @@
|
||||
<array>
|
||||
<dict>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
<string>Viewer</string>
|
||||
<key>CFBundleURLIconFile</key>
|
||||
<string>AppIcon.icns</string>
|
||||
<key>CFBundleURLName</key>
|
||||
<string>com.tdesktop.TelegramUrl</string>
|
||||
<string>com.tdesktop.Telegram</string>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>tg</string>
|
||||
|
Loading…
Reference in New Issue
Block a user