...
 
Commits (2)
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="riot_app_name">Liberty Chat</string>
<string name="app_prefix">liberty-chat</string>
<!-- server urls -->
<string name="vector_im_server_url" translatable="false">https://vector.im</string>
......
......@@ -1470,12 +1470,13 @@ public class CommonActivityUtils {
@Override
public void onSuccess(byte[] bytesArray) {
try {
String filenamePrefix = appContext.getString(R.string.app_prefix);
ByteArrayInputStream stream = new ByteArrayInputStream(bytesArray);
String url = session.getMediasCache().saveMedia(stream, "riot-" + System.currentTimeMillis() + ".txt", "text/plain");
String url = session.getMediasCache().saveMedia(stream, filenamePrefix + "-" + System.currentTimeMillis() + ".txt", "text/plain");
stream.close();
saveMediaIntoDownloads(appContext,
new File(Uri.parse(url).getPath()), "riot-keys.txt", "text/plain", new SimpleApiCallback<String>(callback) {
new File(Uri.parse(url).getPath()), filenamePrefix + "-keys.txt", "text/plain", new SimpleApiCallback<String>(callback) {
@Override
public void onSuccess(String path) {
if (null != callback) {
......
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="riot_app_name">Riot.im</string>
<string name="app_prefix">riot</string>
<!-- server urls -->
<string name="vector_im_server_url" translatable="false">https://vector.im</string>
......