mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 15:41:26 +00:00
Release/1.18.5 (#1536)
* Fix issue with span being the full length (#1528) * Proper display of unresolved names in mentions (#1530) * Fix issue with span being the full length * Making sure a mention with a username without a resolved name still displayed with the appropriate style with the truncated is * Testnet build (#1532) Co-authored-by: fanchao <git@fanchao.dev> * Allow "public.loki.foundation" to be accessed by http (#1534) Co-authored-by: fanchao <git@fanchao.dev> * Bumping the version code and name * Reverting temporary change --------- Co-authored-by: Fanchao Liu <273191+simophin@users.noreply.github.com> Co-authored-by: fanchao <git@fanchao.dev>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package org.session.libsession.utilities
|
||||
|
||||
fun truncateIdForDisplay(id: String): String =
|
||||
id.takeIf { it.length > 8 }?.apply{ "${take(4)}…${takeLast(4)}" } ?: id
|
||||
id.takeIf { it.length > 8 }?.run{ "${take(4)}…${takeLast(4)}" } ?: id
|
||||
|
Reference in New Issue
Block a user