mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-29 00:14:12 +01:00
Allow plus unescaped (Cheogram) + version 1.7
This commit is contained in:
parent
4d60ef3c4b
commit
b8534714d8
5 changed files with 5 additions and 5 deletions
|
@ -134,7 +134,7 @@ android {
|
|||
|
||||
//versionNameSuffix " beta_(2023-01-10)" // " beta_(XXXX-XX-XX)" // activate for beta versions
|
||||
versionCode 132
|
||||
versionName "1.6.5"
|
||||
versionName "1.7"
|
||||
//resConfigs "en"
|
||||
|
||||
archivesBaseName += "-$versionName"
|
||||
|
|
|
@ -730,7 +730,7 @@ public class Account extends AbstractEntity implements AvatarService.Avatarable
|
|||
|
||||
public String getShareableUri() {
|
||||
List<XmppUri.Fingerprint> fingerprints = this.getFingerprints();
|
||||
String uri = "xmpp:" + Uri.encode(getJid().asBareJid().toEscapedString(), "@/");
|
||||
String uri = "xmpp:" + Uri.encode(getJid().asBareJid().toEscapedString(), "@/+");
|
||||
if (fingerprints.size() > 0) {
|
||||
return XmppUri.getFingerprintUri(uri, fingerprints, ';');
|
||||
} else {
|
||||
|
|
|
@ -519,7 +519,7 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
|
|||
if (http) {
|
||||
return "https://conversations.im/j/" + XmppUri.lameUrlEncode(mConversation.getJid().asBareJid().toEscapedString());
|
||||
} else {
|
||||
return "xmpp:" + Uri.encode(mConversation.getJid().asBareJid().toEscapedString(), "@/") + "?join";
|
||||
return "xmpp:" + Uri.encode(mConversation.getJid().asBareJid().toEscapedString(), "@/+") + "?join";
|
||||
}
|
||||
} else {
|
||||
return null;
|
||||
|
|
|
@ -270,7 +270,7 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp
|
|||
if (http) {
|
||||
return "https://conversations.im/i/" + XmppUri.lameUrlEncode(contact.getJid().asBareJid().toEscapedString());
|
||||
} else {
|
||||
return "xmpp:" + Uri.encode(contact.getJid().asBareJid().toEscapedString(), "@/");
|
||||
return "xmpp:" + Uri.encode(contact.getJid().asBareJid().toEscapedString(), "@/+");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -460,7 +460,7 @@ public class StartConversationActivity extends XmppActivity implements XmppConne
|
|||
public static void shareAsChannel(final Context context, final String address) {
|
||||
Intent shareIntent = new Intent();
|
||||
shareIntent.setAction(Intent.ACTION_SEND);
|
||||
shareIntent.putExtra(Intent.EXTRA_TEXT, "xmpp:" + Uri.encode(address, "@/") + "?join");
|
||||
shareIntent.putExtra(Intent.EXTRA_TEXT, "xmpp:" + Uri.encode(address, "@/+") + "?join");
|
||||
shareIntent.setType("text/plain");
|
||||
try {
|
||||
context.startActivity(Intent.createChooser(shareIntent, context.getText(R.string.share_uri_with)));
|
||||
|
|
Loading…
Add table
Reference in a new issue