Merge pull request #1540 from oxen-io/release/1.18.5

Dev: Release/1.18.5
This commit is contained in:
ThomasSession
2024-07-09 14:35:55 +10:00
committed by GitHub
5 changed files with 17 additions and 5 deletions

View File

@@ -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