Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
Pavel R. | 411be0a605 | ||
Bohdan Horbeshko | 5f08bc08d0 | ||
kosyak | e9659f0fa3 |
BIN
screenshots.png
BIN
screenshots.png
Binary file not shown.
Before Width: | Height: | Size: 171 KiB |
BIN
screenshots.xcf
BIN
screenshots.xcf
Binary file not shown.
|
@ -1150,6 +1150,12 @@ public class StartConversationActivity extends XmppActivity implements XmppConne
|
||||||
if (self.match(this, needle)) {
|
if (self.match(this, needle)) {
|
||||||
this.contacts.add(self);
|
this.contacts.add(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (Bookmark bookmark : account.getBookmarks()) {
|
||||||
|
if (bookmark.match(this, needle)) {
|
||||||
|
tags.addAll(bookmark.getTags(this));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1764,6 +1770,12 @@ public class StartConversationActivity extends XmppActivity implements XmppConne
|
||||||
ListItem item = getItem(i);
|
ListItem item = getItem(i);
|
||||||
List<ListItem.Tag> itemTags = item.getTags(activity);
|
List<ListItem.Tag> itemTags = item.getTags(activity);
|
||||||
|
|
||||||
|
if (item instanceof Contact && !((Contact) item).getAccount().getJid().equals(account.getJid())) {
|
||||||
|
continue;
|
||||||
|
} else if (item instanceof Bookmark && !((Bookmark) item).getAccount().getJid().equals(account.getJid())) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (itemTags.size() == 0 || (itemTags.size() == 1 && UIHelper.isStatusTag(activity, itemTags.get(0)))) {
|
if (itemTags.size() == 0 || (itemTags.size() == 1 && UIHelper.isStatusTag(activity, itemTags.get(0)))) {
|
||||||
if (!generalTagAdded) {
|
if (!generalTagAdded) {
|
||||||
tagsAndAccounts.add(initialPosition, generalTag);
|
tagsAndAccounts.add(initialPosition, generalTag);
|
||||||
|
|
Loading…
Reference in a new issue