Fix Search

This commit is contained in:
bemusementpark
2024-07-04 14:48:31 +09:30
parent ca66d115a3
commit a4ee521ee0
6 changed files with 65 additions and 124 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