PR comment

This commit is contained in:
ThomasSession 2024-09-09 13:45:17 +10:00
parent 87e3f93a61
commit 85161ffe33

View File

@ -28,6 +28,7 @@ import org.session.libsession.utilities.recipients.Recipient
import org.session.libsignal.utilities.Log
import org.thoughtcrime.securesms.conversation.start.StartConversationDelegate
import org.thoughtcrime.securesms.conversation.v2.ConversationActivityV2
import org.thoughtcrime.securesms.ui.getSubbedString
import org.thoughtcrime.securesms.util.ConfigurationMessageUtilities
@AndroidEntryPoint
@ -131,8 +132,8 @@ class JoinCommunityFragment : Fragment() {
Log.e("Loki", "Couldn't join community.", e)
withContext(Dispatchers.Main) {
hideLoader()
val txt = Phrase.from(context, R.string.groupErrorJoin)
.put(GROUP_NAME_KEY, url).format().toString()
val txt = context?.getSubbedString(R.string.groupErrorJoin,
GROUP_NAME_KEY to url)
Toast.makeText(activity, txt, Toast.LENGTH_SHORT).show()
}
}