Tough to say. I think the *ideal* solution would be to define the maximum message lengths in *friends* itself, since that's there most of the platform-specific info is encapsulated. The only problem is that there's no good way to communicate that from friends to friends-app. So, it would require a pretty massive overhaul to be able to communicate those between (like, we'd need to add methods to the dbus interface, which requires a painful transition).
At this point, I'd just as well code it directly in friends-app, because a) it's not something that's likely to change, so there's little value in being able to query it from the services, and b) it's the path of least resistence.
Tough to say. I think the *ideal* solution would be to define the maximum message lengths in *friends* itself, since that's there most of the platform-specific info is encapsulated. The only problem is that there's no good way to communicate that from friends to friends-app. So, it would require a pretty massive overhaul to be able to communicate those between (like, we'd need to add methods to the dbus interface, which requires a painful transition).
At this point, I'd just as well code it directly in friends-app, because a) it's not something that's likely to change, so there's little value in being able to query it from the services, and b) it's the path of least resistence.