Display sended image messages, prepared for audio, files, videos.

This commit is contained in:
B. Petersen
2016-10-27 03:29:51 +02:00
parent ba8d919c68
commit ba60c63b1d
11 changed files with 133 additions and 46 deletions
+26 -3
View File
@@ -394,13 +394,16 @@ JNIEXPORT jint Java_org_telegram_messenger_MrMailbox_MrChatSendText(JNIEnv *env,
}
JNIEXPORT jint Java_org_telegram_messenger_MrMailbox_MrChatSendMedia(JNIEnv *env, jclass c, jlong hChat, jint type, jstring file, jint w, jint h, jint ms)
JNIEXPORT jint Java_org_telegram_messenger_MrMailbox_MrChatSendMedia(JNIEnv *env, jclass c, jlong hChat, jint type, jstring file, jstring mime, jint w, jint h, jint ms)
{
mrmsg_t* msg = mrmsg_new();
msg->m_type = MR_MSG_TEXT;
msg->m_type = type;
CHAR_REF(mime);
mrparam_set(msg->m_param, 'm', mimePtr);
CHAR_UNREF(mime);
CHAR_REF(file);
mrparam_set(msg->m_param, 'f', filePtr);
CHAR_UNREF(file);
CHAR_UNREF(file);
if( type == MR_MSG_IMAGE || type == MR_MSG_VIDEO ) {
mrparam_set_int(msg->m_param, 'w', w);
mrparam_set_int(msg->m_param, 'h', h);
@@ -504,6 +507,26 @@ JNIEXPORT jint Java_org_telegram_messenger_MrMailbox_MrMsgGetToId(JNIEnv *env, j
}
JNIEXPORT jstring Java_org_telegram_messenger_MrMailbox_MrMsgGetParam(JNIEnv *env, jclass c, jlong hMsg, jint key, jstring def)
{
mrmsg_t* ths = (mrmsg_t*)hMsg;
CHAR_REF(def);
char* temp = mrparam_get(ths? ths->m_param:NULL, key, defPtr);
jstring ret = JSTRING_NEW(temp);
mrlog_info(" got %s", temp);
free(temp);
CHAR_UNREF(def);
return ret;
}
JNIEXPORT jint Java_org_telegram_messenger_MrMailbox_MrMsgGetParamInt(JNIEnv *env, jclass c, jlong hMsg, jint key, jint def)
{
mrmsg_t* ths = (mrmsg_t*)hMsg;
return mrparam_get_int(ths? ths->m_param:NULL, key, def);
}
/*******************************************************************************
* MrContact
******************************************************************************/
@@ -312,6 +312,10 @@ public class ApplicationLoader extends Application {
MrMailbox.MrStockAddStr(6, LocaleController.getString("ContactSg", R.string.ContactSg));
MrMailbox.MrStockAddStr(7, LocaleController.getString("ContactPl", R.string.ContactPl));
MrMailbox.MrStockAddStr(8, LocaleController.getString("Strangers", R.string.Strangers));
MrMailbox.MrStockAddStr(9, LocaleController.getString("AttachPhoto", R.string.AttachPhoto));
MrMailbox.MrStockAddStr(10, LocaleController.getString("AttachVideo", R.string.AttachVideo));
MrMailbox.MrStockAddStr(11, LocaleController.getString("AttachAudio", R.string.AttachAudio));
MrMailbox.MrStockAddStr(12, LocaleController.getString("AttachDocument", R.string.AttachDocument));
applicationHandler = new Handler(applicationContext.getMainLooper());
@@ -2697,7 +2697,9 @@ public class MediaController implements AudioManager.OnAudioFocusChangeListener,
audioToSend.attributes.add(attributeAudio);
if (duration > 700) {
if (send == 1) {
SendMessagesHelper.getInstance().sendMessageDocument(audioToSend, null, recordingAudioFileToSend.getAbsolutePath(), recordDialogId, recordReplyingMessageObject, null);
HashMap<String, String> params = new HashMap<>();
params.put("mr_time_ms", ""+recordTimeCount);
SendMessagesHelper.getInstance().sendMessageDocument(audioToSend, null, recordingAudioFileToSend.getAbsolutePath(), recordDialogId, recordReplyingMessageObject, params);
}
NotificationCenter.getInstance().postNotificationName(NotificationCenter.audioDidSent, send == 2 ? audioToSend : null, send == 2 ? recordingAudioFileToSend.getAbsolutePath() : null);
} else {
@@ -64,6 +64,7 @@ public class MrMailbox {
// TLRPC.TL_message is a normal message (also photos?)
int state = MrMsgGetState(hMsg);
int type = MrMsgGetType(hMsg);
switch( state ) {
case MR_OUT_DELIVERED: ret.send_state = MessageObject.MESSAGE_SEND_STATE_SENT; break;
case MR_OUT_ERROR: ret.send_state = MessageObject.MESSAGE_SEND_STATE_SEND_ERROR; break;
@@ -75,15 +76,44 @@ public class MrMailbox {
ret.from_id = MrMailbox.MrMsgGetFromId(hMsg);
ret.to_id = new TLRPC.TL_peerUser();
ret.to_id.user_id = MrMailbox.MrMsgGetToId(hMsg);
ret.message = MrMailbox.MrMsgGetText(hMsg);
ret.date = (int)MrMsgGetTimestamp(hMsg);
ret.dialog_id = MrMsgGetChatId(hMsg);
ret.unread = state!=MR_OUT_READ; // the state of outgoing messages
ret.media_unread = ret.unread;
ret.flags = 0;
ret.flags = 0; // posible flags: TLRPC.MESSAGE_FLAG_HAS_FROM_ID, however, this seems to be read only
ret.post = false; // ? true=avatar wird in gruppen nicht angezeigt
ret.out = ret.from_id==1; // true=outgoing message, read eg. in MessageObject.isOutOwner()
if( type == MrMailbox.MR_MSG_TEXT ) {
ret.message = MrMailbox.MrMsgGetText(hMsg);
}
else if( type == MrMailbox.MR_MSG_IMAGE ) {
String path = MrMailbox.MrMsgGetParam(hMsg, 'f', "");
TLRPC.TL_photo photo = null;
if( !path.isEmpty() ) {
try {
// TODO: It is very inefficient to load all photos on dialog loading! FIX ME!
photo = SendMessagesHelper.getInstance().generatePhotoSizes(path, null); // TODO: does this degrade image quality?
} catch (Exception e) {
// the most common reason is a simple "file not found error"
}
}
if(photo!=null) {
ret.message = "-1";
ret.media = new TLRPC.TL_messageMediaPhoto();
ret.media.photo = photo;
}
else {
ret.message = "<" + LocaleController.getString("CannotLoadFile", R.string.CannotLoadFile) + ">";
}
}
else {
ret.message = "Messages of this type are not yet supported.";
}
// ret.attachPath
// +obj.attachPathExists
// MessageObject.contentType - ??
return ret;
}
@@ -95,6 +125,12 @@ public class MrMailbox {
return ret;
}
public static void reloadMainChatlist()
{
MrChatlistUnref(hCurrChatlist); // it's not optimal running this on the UI thread, maybe we should lock it and run it in a separate thread
hCurrChatlist = MrMailboxGetChatlist(hMailbox);
}
// this function is called from within the C-wrapper
public final static int MR_EVENT_MSGS_UPDATED = 2000;
public final static int MR_EVENT_IS_EMAIL_KNOWN = 2010;
@@ -106,8 +142,7 @@ public class MrMailbox {
AndroidUtilities.runOnUIThread(new Runnable() {
@Override
public void run() {
MrChatlistUnref(hCurrChatlist); // it's not optimal running this on the UI thread, maybe we should lock it and run it in a separate thread
hCurrChatlist = MrMailboxGetChatlist(hMailbox);
reloadMainChatlist();
NotificationCenter.getInstance().postNotificationName(NotificationCenter.dialogsNeedReload);
}
});
@@ -166,7 +201,7 @@ public class MrMailbox {
public native static long MrChatGetSummary (long hChat); // returns hPoortext
public native static long MrChatGetMsglist (long hChat, int offset, int amount); // returns hMsglist
public native static int MrChatSendText (long hChat, String text); // returns message id
public native static int MrChatSendMedia (long hChat, int type, String file, int w, int h, int ms);
public native static int MrChatSendMedia (long hChat, int type, String file, String mime, int w, int h, int time_ms);
// MrMsglist objects
public native static void MrMsglistUnref (long hMsglist);
@@ -183,6 +218,9 @@ public class MrMailbox {
public native static int MrMsgGetChatId (long hMsg);
public native static int MrMsgGetFromId (long hMsg);
public native static int MrMsgGetToId (long hMsg);
public native static String MrMsgGetParam (long hMsg, int key, String def);
public native static int MrMsgGetParamInt (long hMsg, int key, int def);
// MrContact objects
public native static void MrContactUnref (long hContact);
@@ -594,23 +594,19 @@ public class SendMessagesHelper implements NotificationCenter.NotificationCenter
}
public void sendMessageContact(TLRPC.User user, long peer, MessageObject reply_to_msg, HashMap<String, String> params) {
sendMessage__(null, null, null, null, user, null, peer, null, reply_to_msg, null, true,
null, params);
sendMessage__(null, null, null, null, user, null, peer, null, reply_to_msg, null, null, params);
}
public void sendMessageDocument(TLRPC.TL_document document, VideoEditedInfo videoEditedInfo, String path, long peer, MessageObject reply_to_msg, HashMap<String, String> params) {
sendMessage__(null, null, null, videoEditedInfo, null, document, peer, path, reply_to_msg, null, true,
null, params);
sendMessage__(null, null, null, videoEditedInfo, null, document, peer, path, reply_to_msg, null, null, params);
}
public void sendMessageText(String message, long peer, MessageObject reply_to_msg, TLRPC.WebPage webPage, boolean searchLinks, ArrayList<TLRPC.MessageEntity> entities, HashMap<String, String> params) {
sendMessage__(message, null, null, null, null, null, peer, null, reply_to_msg, webPage, searchLinks,
entities, params);
sendMessage__(message, null, null, null, null, null, peer, null, reply_to_msg, webPage, entities, params);
}
public void sendMessagePhoto(TLRPC.TL_photo photo, String path, long peer, MessageObject reply_to_msg, HashMap<String, String> params) {
sendMessage__(null, null, photo, null, null, null, peer, path, reply_to_msg, null, true, null,
params);
sendMessage__(null, null, photo, null, null, null, peer, path, reply_to_msg, null, null, params);
}
private void sendMessage__(String message,
@@ -623,7 +619,6 @@ public class SendMessagesHelper implements NotificationCenter.NotificationCenter
String path,
MessageObject reply_to_msg,
TLRPC.WebPage webPage,
boolean searchLinks,
ArrayList<TLRPC.MessageEntity> entities,
HashMap<String, String> params) {
if (peer == 0) { // peer == dialog id
@@ -725,6 +720,7 @@ public class SendMessagesHelper implements NotificationCenter.NotificationCenter
type = 6;
}
} else if (document != null) {
// AUDIO, VIDEO etc.
newMsg = new TLRPC.TL_message();
newMsg.media = new TLRPC.TL_messageMediaDocument();
newMsg.media.caption = document.caption != null ? document.caption : "";
@@ -812,6 +808,8 @@ public class SendMessagesHelper implements NotificationCenter.NotificationCenter
{
newMsg.id = MrMailbox.MrChatSendText(hChat, newMsg.message);
DraftQuery.cleanDraft(peer, false);
MrMailbox.reloadMainChatlist();
}
else if (type >= 1 && type <= 3 || type >= 5 && type <= 8 /*|| type == 9 && encryptedChat != null*/) {
TLRPC.InputMedia inputMedia = null;
@@ -933,9 +931,55 @@ public class SendMessagesHelper implements NotificationCenter.NotificationCenter
}
}
if( type == 2 ) {
MrMailbox.MrChatSendMedia(hChat, MrMailbox.MR_MSG_IMAGE, originalPath, 0, 0, 0);
// perform sending
if( type == 2 )
{
// SEND IMAGE
TLRPC.PhotoSize size1 = photo.sizes.get(photo.sizes.size() - 1);
MrMailbox.MrChatSendMedia(hChat, MrMailbox.MR_MSG_IMAGE,
newMsg.attachPath, null, size1.w, size1.h, 0);
}
else if( type == 3 )
{
// SEND VIDEO
int width = 0, height = 0, time_ms = 0;
for (int i = 0; i < document.attributes.size(); i++) {
TLRPC.DocumentAttribute a = document.attributes.get(i);
if (a instanceof TLRPC.TL_documentAttributeVideo) {
time_ms = a.duration*1000;
width = a.w;
height = a.h;
break;
}
}
if( videoEditedInfo!=null ) {
width = videoEditedInfo.resultWidth; // overwrite original attributes with edited size
height = videoEditedInfo.resultHeight;
}
MrMailbox.MrChatSendMedia(hChat, MrMailbox.MR_MSG_VIDEO,
newMsg.attachPath, document.mime_type, width, height, time_ms);
}
else if( type == 7 )
{
// SEND FILE
MrMailbox.MrChatSendMedia(hChat, MrMailbox.MR_MSG_FILE,
newMsg.attachPath, document.mime_type, 0, 0, 0);
}
else if( type == 8 )
{
// SEND AUDIO
int time_ms = 0;
if( params.get("mr_time_ms") != null ) {
time_ms = Integer.parseInt(params.get("mr_time_ms"));
}
MrMailbox.MrChatSendMedia(hChat, MrMailbox.MR_MSG_AUDIO,
newMsg.attachPath, document.mime_type, 0, 0, time_ms);
}
MrMailbox.reloadMainChatlist();
@@ -1047,7 +1091,6 @@ public class SendMessagesHelper implements NotificationCenter.NotificationCenter
NotificationCenter.getInstance().postNotificationName(NotificationCenter.messageSendError, newMsg.id);
//processSentMessage(newMsg.id);
}
}
protected void stopVideoService(final String path) {
@@ -263,7 +263,6 @@
<string name="InviteToGroupByLink">Per Link zur Gruppe einladen</string>
<string name="InviteLink">Einladungslink</string>
<string name="RevokeAlert">Bist du sicher, dass du diesen Link widerrufen willst? Dadurch kann ihn niemand mehr nutzen.</string>
<string name="RevokeAlertNewLink">Der vorige Link ist nun inaktiv. Ein neuer Einladungslink wurde gerade erstellt.</string>
<string name="RevokeButton">Widerrufen</string>
<string name="RevokeLink">Link widerrufen</string>
<string name="CopyLink">Link kopieren</string>
@@ -280,8 +279,6 @@
<string name="KickFromGroup">Aus der Gruppe entfernen</string>
<string name="UpgradeGroup">In Supergruppe ändern</string>
<string name="ConvertGroupMenu">In Supergruppe ändern</string>
<string name="ConvertGroupAlertWarning">Warnung</string>
<string name="ConvertGroupAlert">Du kannst die Supergruppe nicht mehr in eine normale Gruppe ändern.</string>
<string name="ConvertGroupInfo"><![CDATA[<b>]]>Gruppenlimit erreicht.<![CDATA[</b>]]>\n\nFür weitere Funktionen und um das Limit aufzuheben in Supergruppe ändern:\n\n• Bis zu %1$s sind nun möglich\n• Neue Mitglieder sehen gesamten Verlauf\n• Gelöschte Nachrichten werden bei allen Mitgliedern entfernt\n•Gruppenersteller kann die Gruppe öffentlich machen</string>
<!--contact info view-->
<string name="ShareContact">Teilen</string>
@@ -694,7 +691,6 @@
<string name="SendContactToGroup">Kontakt senden an %1$s?</string>
<string name="ForwardMessagesToGroup">Weiterleiten an %1$s?</string>
<string name="RaiseToSpeakAlert">Möchtest du \"Zum Sprechen ans Ohr\" für Sprachnachrichten aktivieren?</string>
<string name="EditMessageError">Du kannst diese Nachricht nicht bearbeiten.</string>
<string name="AllowReadSms">Bitte erlaube Telegram den Zugriff auf SMS, so dass wir den Code automatisch in der App für dich eingeben können.</string>
<string name="AllowReadCall">Bitte erlaube Telegram den Zugriff auf Anrufe, so dass wir den Code automatisch in der App eingeben können.</string>
<string name="AllowReadCallAndSms">Bitte erlaube Telegram den Zugriff auf SMS und Anrufe, so dass wir den Code automatisch in der App eingeben können.</string>
@@ -264,7 +264,6 @@
<string name="InviteToGroupByLink">Invitar al grupo con un enlace</string>
<string name="InviteLink">Enlace de invitación</string>
<string name="RevokeAlert">¿Quieres anular este enlace? Una vez anulado, nadie podrá unirse a través de él.</string>
<string name="RevokeAlertNewLink">El enlace de invitación anterior está inactivo. Ha sido creado uno nuevo.</string>
<string name="RevokeButton">Anular</string>
<string name="RevokeLink">Anular enlace</string>
<string name="CopyLink">Copiar enlace</string>
@@ -281,8 +280,6 @@
<string name="KickFromGroup">Eliminar del grupo</string>
<string name="UpgradeGroup">Convertir en supergrupo</string>
<string name="ConvertGroupMenu">Convertir en supergrupo</string>
<string name="ConvertGroupAlertWarning">Advertencia</string>
<string name="ConvertGroupAlert">Esta acción es irreversible. No puedes convertir un supergrupo en un grupo normal.</string>
<string name="ConvertGroupInfo"><![CDATA[<b>]]>Límite de miembros alcanzado.<![CDATA[</b>]]>\n\nPara superar el límite y tener características adicionales, conviértelo en un supergrupo:\n\n Permiten hasta %1$s\n• Nuevos miembros ven todo el historial\n• Un mensaje eliminado se borra para todos\n• El creador puede generar un enlace público</string>
<!--contact info view-->
<string name="ShareContact">Compartir</string>
@@ -695,7 +692,6 @@
<string name="SendContactToGroup">¿Enviar contacto a %1$s?</string>
<string name="ForwardMessagesToGroup">¿Reenviar mensajes a %1$s?</string>
<string name="RaiseToSpeakAlert">¿Quieres habilitar “Elevar para hablar” para mensajes de voz?</string>
<string name="EditMessageError">No puedes editar este mensaje.</string>
<string name="AllowReadSms">Por favor, permite a Telegram recibir SMS, para ingresar el código automáticamente.</string>
<string name="AllowReadCall">Por favor, permite a Telegram recibir llamadas, para ingresar el código automáticamente.</string>
<string name="AllowReadCallAndSms">Por favor, permite a Telegram recibir llamadas y SMS, para ingresar el código automáticamente.</string>
@@ -264,7 +264,6 @@
<string name="InviteToGroupByLink">Invita nel gruppo via link</string>
<string name="InviteLink">Link di invito</string>
<string name="RevokeAlert">Sei sicuro di voler revocare questo link? Una volta fatto, nessuno potrà unirsi utilizzandolo.</string>
<string name="RevokeAlertNewLink">Il precedente link di invito è inattivo. Ne è appena stato creato uno nuovo.</string>
<string name="RevokeButton">Revoca</string>
<string name="RevokeLink">Revoca link</string>
<string name="CopyLink">Copia link</string>
@@ -281,8 +280,6 @@
<string name="KickFromGroup">Rimuovi dal gruppo</string>
<string name="UpgradeGroup">Aggiorna a supergruppo</string>
<string name="ConvertGroupMenu">Converti in supergruppo</string>
<string name="ConvertGroupAlertWarning">Attenzione</string>
<string name="ConvertGroupAlert">Questa azione è irreversibile. Non è possibile trasformare un supergruppo in un gruppo normale.</string>
<string name="ConvertGroupInfo"><![CDATA[<b>]]>Limite membri raggiunto.<![CDATA[</b>]]>\n\nPer superare il limite e sbloccare nuove funzioni, aggiorna a supergruppo:\n\n• Il supergruppi hanno massimo %1$s\n• I nuovi membri vedono tutta la cronologia\n• I messaggi eliminati scompaiono per tutti\n• Il creatore può creare un link pubblico per il gruppo</string>
<!--contact info view-->
<string name="ShareContact">Condividi</string>
@@ -695,7 +692,6 @@
<string name="SendContactToGroup">Inviare contatto a %1$s?</string>
<string name="ForwardMessagesToGroup">Inoltra messaggi a %1$s?</string>
<string name="RaiseToSpeakAlert">Vuoi attivare \"Alza per parlare\" per i messaggi vocali?</string>
<string name="EditMessageError">Spiacenti, non puoi modificare questo messaggio.</string>
<string name="AllowReadSms">Per favore consenti a Telegram di ricevere SMS così potremo inserire in automatico il codice per te.</string>
<string name="AllowReadCall">Per favore consenti a Telegram di ricevere chiamate così potremo inserire in automatico il codice per te.</string>
<string name="AllowReadCallAndSms">Per favore consenti a Telegram di ricevere chiamate ed SMS così potremo inserire in automatico il codice per te.</string>
@@ -264,7 +264,6 @@
<string name="InviteToGroupByLink">Uitnodigingslink sturen</string>
<string name="InviteLink">Uitnodigingslink</string>
<string name="RevokeAlert">Deze link echt intrekken? Na intrekken kan niemand meer lid worden met de oude link.</string>
<string name="RevokeAlertNewLink">De oude link is nu inactief. Een nieuwe link is aangemaakt.</string>
<string name="RevokeButton">Intrekken</string>
<string name="RevokeLink">Link intrekken</string>
<string name="CopyLink">Link kopiëren</string>
@@ -281,8 +280,6 @@
<string name="KickFromGroup">Verwijderen uit groep</string>
<string name="UpgradeGroup">Opwaarderen naar supergroep</string>
<string name="ConvertGroupMenu">Opwaarderen naar supergroep</string>
<string name="ConvertGroupAlertWarning">Waarschuwing</string>
<string name="ConvertGroupAlert">Groep echt omzetten naar supergroep? Je kunt dit niet ongedaan maken.</string>
<string name="ConvertGroupInfo"><![CDATA[<b>]]>Ledenlimiet bereikt.<![CDATA[</b>]]>\n\nWil je extra functies en een hogere limiet? Waardeer op naar een supergroep:\n\n• Supergroepen hebben tot %1$s\n• Nieuwe leden zien de hele geschiedenis\n•Gewiste berichten gelden voor iedereen\n• Maker kan een publieke groepslink instellen</string>
<!--contact info view-->
<string name="ShareContact">Delen</string>
@@ -695,7 +692,6 @@
<string name="SendContactToGroup">Contact delen met %1$s?</string>
<string name="ForwardMessagesToGroup">Berichten doorsturen naar %1$s?</string>
<string name="RaiseToSpeakAlert">Wil je \"Houd bij oor\" inschakelen voor spraakberichten?</string>
<string name="EditMessageError">Je mag dit bericht niet bewerken.</string>
<string name="AllowReadSms">Sta het ontvangen van SMS toe zodat we automatisch je inlogcode kunnen invoeren.</string>
<string name="AllowReadCall">Sta het ontvangen van oproepen toe zodat we automatisch je inlogcode kunnen invoeren.</string>
<string name="AllowReadCallAndSms">Sta het ontvangen van oproepen en SMS toe zodat we automatisch je inlogcode kunnen invoeren.</string>
@@ -264,7 +264,6 @@
<string name="InviteToGroupByLink">Convidar para o Grupo via Link</string>
<string name="InviteLink">Link de Convite</string>
<string name="RevokeAlert">Você tem certeza que deseja desativar o link? Uma vez feito, ninguém conseguirá entrar usando-o.</string>
<string name="RevokeAlertNewLink">Este link de convite está inativo. Um novo link foi gerado.</string>
<string name="RevokeButton">Desativar</string>
<string name="RevokeLink">Desativar Link</string>
<string name="CopyLink">Copiar Link</string>
@@ -281,8 +280,6 @@
<string name="KickFromGroup">Remover do grupo</string>
<string name="UpgradeGroup">Converter a Supergrupo</string>
<string name="ConvertGroupMenu">Converter a supergrupo</string>
<string name="ConvertGroupAlertWarning">Atenção</string>
<string name="ConvertGroupAlert">Essa ação é irreversível. Não é possível voltar de um supergrupo para um grupo normal.</string>
<string name="ConvertGroupInfo"><![CDATA[<b>]]>Limite de membros atingido.<![CDATA[</b>]]>\n\nPara ir além do limite e ter funções adcionais, converta para um supergrupo:\n\n• Supergrupos podem ter até %1$s\n• Novos membros veêm todo o histórico de conversas\n• Administradores deletam mensagens para todos\n• O criador pode definir um link público para o grupo</string>
<!--contact info view-->
<string name="ShareContact">Compartilhar</string>
@@ -695,7 +692,6 @@
<string name="SendContactToGroup">Enviar contato para %1$s?</string>
<string name="ForwardMessagesToGroup">Encaminhar mensagem para %1$s?</string>
<string name="RaiseToSpeakAlert">Gostaria de habilitar o \"Levantar para Falar\" para mensagens de voz?</string>
<string name="EditMessageError">Desculpe, você não pode editar essa mensagem.</string>
<string name="AllowReadSms">Permita o acesso às SMS ao Telegram, assim podemos automaticamente adicionar o código para você.</string>
<string name="AllowReadCall">Permita o acesso às ligações ao Telegram, assim podemos automaticamente adicionar o código para você.</string>
<string name="AllowReadCallAndSms">Permita o acesso às SMS e ligações ao Telegram, assim podemos automaticamente adicionar o código para você.</string>
@@ -264,7 +264,6 @@
<string name="InviteToGroupByLink">Invite to Group via Link</string>
<string name="InviteLink">Invite Link</string>
<string name="RevokeAlert">Are you sure you want to revoke this link? Once the link is revoked, no one will be able to join using it.</string>
<string name="RevokeAlertNewLink">The previous invite link is now inactive. A new link has been generated.</string>
<string name="RevokeButton">Revoke</string>
<string name="RevokeLink">Revoke Link</string>
<string name="CopyLink">Copy Link</string>
@@ -281,8 +280,6 @@
<string name="KickFromGroup">Remove from group</string>
<string name="UpgradeGroup">Upgrade to Supergroup</string>
<string name="ConvertGroupMenu">Convert to supergroup</string>
<string name="ConvertGroupAlertWarning">Warning</string>
<string name="ConvertGroupAlert">This action is irreversible. It is not possible to downgrade a supergroup to a regular group.</string>
<string name="ConvertGroupInfo"><![CDATA[<b>]]>Members limit reached.<![CDATA[</b>]]>\n\nTo go over the limit and get additional features, upgrade to a supergroup:\n\n• Supergroups can get up to %1$s\n• New members can see the full message history\n• Deleted messages will disappear for all members\n• Admins can pin important messages\n• Creator can set a public link for the group</string>
<!--contact info view-->
<string name="ShareContact">Share</string>
@@ -546,7 +543,7 @@
<string name="PasswordCode">Code</string>
<!--privacy settings-->
<string name="PrivacySettings">Privacy and Security</string>
<string name="PrivacyTitle">Privacy</string>
<string name="PrivacyTitle" tools:keep="@string/PrivacyTitle">Privacy</string>
<string name="PrivacyLastSeen">Last Seen</string>
<string name="LastSeenEverybody">Everybody</string>
<string name="LastSeenContacts">My Contacts</string>
@@ -695,7 +692,6 @@
<string name="SendContactToGroup">Send contact to %1$s?</string>
<string name="ForwardMessagesToGroup">Forward messages to %1$s?</string>
<string name="RaiseToSpeakAlert">Would you like to enable "Raise to speak" for voice messages?</string>
<string name="EditMessageError">Sorry, you can\'t edit this message.</string>
<string name="AllowReadSms">Please allow Telegram to receive SMS so that we can automatically enter your code for you.</string>
<string name="AllowReadCall">Please allow Telegram to receive calls so that we can automatically enter your code for you.</string>
<string name="AllowReadCallAndSms">Please allow Telegram to receive calls and SMS so that we can automatically enter your code for you.</string>
@@ -885,4 +881,5 @@
<string name="AskStartChatWith">Start a chat with <![CDATA[<b>]]>%1$s<![CDATA[</b>]]>?</string>
<string name="StrangersHint">To start a chat, click on the reply-arrows.</string>
<string name="NotYetImplemented">This function is not yet available in this version.</string>
<string name="CannotLoadFile">Cannot load file.</string>
</resources>