Search in sources :

Example 1 with InstantMessageNotification

use of org.olat.instantMessaging.InstantMessageNotification in project openolat by klemens.

the class InstantMessagingMainController method loadNotifications.

private void loadNotifications() {
    List<InstantMessageNotification> notifications = imService.getNotifications(getIdentity());
    for (InstantMessageNotification notification : notifications) {
        if (!showNewMessageHolder.contains(notification.getFromIdentityKey())) {
            showNewMessageHolder.add(notification.getFromIdentityKey());
            Buddy buddy = imService.getBuddyById(notification.getFromIdentityKey());
            createShowNewMessageLink(buddy);
        }
    }
}
Also used : InstantMessageNotification(org.olat.instantMessaging.InstantMessageNotification) Buddy(org.olat.instantMessaging.model.Buddy)

Example 2 with InstantMessageNotification

use of org.olat.instantMessaging.InstantMessageNotification in project OpenOLAT by OpenOLAT.

the class InstantMessagingMainController method loadNotifications.

private void loadNotifications() {
    List<InstantMessageNotification> notifications = imService.getNotifications(getIdentity());
    for (InstantMessageNotification notification : notifications) {
        if (!showNewMessageHolder.contains(notification.getFromIdentityKey())) {
            showNewMessageHolder.add(notification.getFromIdentityKey());
            Buddy buddy = imService.getBuddyById(notification.getFromIdentityKey());
            createShowNewMessageLink(buddy);
        }
    }
}
Also used : InstantMessageNotification(org.olat.instantMessaging.InstantMessageNotification) Buddy(org.olat.instantMessaging.model.Buddy)

Aggregations

InstantMessageNotification (org.olat.instantMessaging.InstantMessageNotification)2 Buddy (org.olat.instantMessaging.model.Buddy)2